CVE-2021-38153Apache Kafka
Medium 5.9 No auth needed
Follow: this CVE · Apache · Apache Kafka We alert you by email or Slack (account required).
- Priority
- 51
- CVSS 3.1
- 5.9
- EPSS
- 5.5% probability of exploitation in 30 days · percentile 94
- Auth required
- No
- Published
- Sep 22, 2021
- Updated
- Jun 17, 2026
- Category
- Server · Cross-platform
- Weakness (CWE)
- CWE-203
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
Some components in Apache Kafka use `Arrays.equals` to validate a password or key, which is vulnerable to timing attacks that make brute force attacks for such credentials more likely to be successful. Users should upgrade to 2.8.1 or higher, or 3.0.0 or higher where this vulnerability has been fixed. The affected versions include Apache Kafka 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0, 2.6.1, 2.6.2, 2.7.0, 2.7.1, and 2.8.0.
What to do
- Apply the vendor's security update for Kafka.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.apache.kafka:kafka-clients |
≥ 2.0.0 < 2.6.3 |
2.6.3 |
— |
| Maven | org.apache.kafka:kafka-clients |
≥ 2.7.0 < 2.7.2 |
2.7.2 |
— |
| Maven | org.apache.kafka:kafka-clients |
≥ 2.8.0 < 2.8.1 |
2.8.1 |
— |
| Maven | org.apache.kafka:kafka_2.11 |
≥ 2.0.0 ≤ 2.4.1 |
no fixed version | — |
| Maven | org.apache.kafka:kafka_2.12 |
≥ 2.0.0 < 2.6.3 |
2.6.3 |
— |
| Maven | org.apache.kafka:kafka_2.12 |
≥ 2.7.0 < 2.7.2 |
2.7.2 |
— |
| Maven | org.apache.kafka:kafka_2.12 |
≥ 2.8.0 < 2.8.1 |
2.8.1 |
— |
| Maven | org.apache.kafka:kafka_2.13 |
≥ 2.4.0 < 2.6.3 |
2.6.3 |
— |
| Maven | org.apache.kafka:kafka_2.13 |
≥ 2.7.0 < 2.7.2 |
2.7.2 |
— |
| Maven | org.apache.kafka:kafka_2.13 |
≥ 2.8.0 < 2.8.1 |
2.8.1 |
— |
Per OSV / GitHub Advisories (GHSA-3j6g-hxx5-3q26). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apache | kafka | ≥ 2.0.0 < 2.6.3 |
| apache | kafka | ≥ 2.7.0 < 2.7.2 |
| apache | kafka | 2.8.0 |
| quarkus | quarkus | < 2.2.4 |
| oracle | communications_brm_-_elastic_charging_engine | < 12.0.0.4.6 |
| oracle | communications_brm_-_elastic_charging_engine | 12.0.0.5.0 |
| oracle | communications_cloud_native_core_policy | 1.15.0 |
| oracle | financial_services_analytical_applications_infrastructure | ≥ 8.0.6.0 ≤ 8.0.9.0 |
| oracle | financial_services_analytical_applications_infrastructure | ≥ 8.1.0.0.0 ≤ 8.1.20 |
| oracle | financial_services_behavior_detection_platform | ≥ 8.0.6.0.0 ≤ 8.0.8.0 |
| oracle | financial_services_behavior_detection_platform | 8.1.1.0 |
| oracle | financial_services_behavior_detection_platform | 8.1.1.1 |
| oracle | financial_services_behavior_detection_platform | 8.1.2.0 |
| oracle | financial_services_enterprise_case_management | 8.0.7.1 |
| oracle | financial_services_enterprise_case_management | 8.0.7.2 |
| oracle | financial_services_enterprise_case_management | 8.0.8.0 |
| oracle | financial_services_enterprise_case_management | 8.0.8.1 |
| oracle | financial_services_enterprise_case_management | 8.1.1.0 |
| oracle | financial_services_enterprise_case_management | 8.1.1.1 |
| oracle | primavera_unifier | 18.8 |
| oracle | primavera_unifier | 19.12 |
| oracle | primavera_unifier | 20.12 |
| oracle | primavera_unifier | 21.12 |
Official sources
References
Links published by the sources. Open them with care.
- kafka.apache.org Vendor Advisory
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- www.oracle.com Patch Third Party Advisory
- www.oracle.com Third Party Advisory
- www.oracle.com Third Party Advisory