Medium severity5.9NVD Advisory· Published Sep 22, 2021· Updated Jun 17, 2026
CVE-2021-38153
CVE-2021-38153
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.apache.kafka:kafka_2.11Maven | >= 2.0.0, <= 2.4.1 | — |
org.apache.kafka:kafka_2.12Maven | >= 2.0.0, < 2.6.3 | 2.6.3 |
org.apache.kafka:kafka_2.12Maven | >= 2.7.0, < 2.7.2 | 2.7.2 |
org.apache.kafka:kafka_2.12Maven | >= 2.8.0, < 2.8.1 | 2.8.1 |
org.apache.kafka:kafka_2.13Maven | >= 2.4.0, < 2.6.3 | 2.6.3 |
org.apache.kafka:kafka_2.13Maven | >= 2.7.0, < 2.7.2 | 2.7.2 |
org.apache.kafka:kafka_2.13Maven | >= 2.8.0, < 2.8.1 | 2.8.1 |
org.apache.kafka:kafka-clientsMaven | >= 2.0.0, < 2.6.3 | 2.6.3 |
org.apache.kafka:kafka-clientsMaven | >= 2.7.0, < 2.7.2 | 2.7.2 |
org.apache.kafka:kafka-clientsMaven | >= 2.8.0, < 2.8.1 | 2.8.1 |
Affected products
14- osv-coords13 versionspkg:apk/chainguard/apache-nifipkg:apk/chainguard/apache-nifi-compatpkg:apk/chainguard/apache-nifi-toolkitpkg:apk/chainguard/hivepkg:apk/chainguard/hive-compatpkg:apk/wolfi/apache-nifipkg:apk/wolfi/apache-nifi-compatpkg:apk/wolfi/apache-nifi-toolkitpkg:bitnami/kafkapkg:maven/org.apache.kafka/kafka_2.11pkg:maven/org.apache.kafka/kafka_2.12pkg:maven/org.apache.kafka/kafka_2.13pkg:maven/org.apache.kafka/kafka-clients
< 1.26.0-r2+ 12 more
- (no CPE)range: < 1.26.0-r2
- (no CPE)range: < 2.6.0-r2
- (no CPE)range: < 2.6.0-r2
- (no CPE)range: < 4.0.1-r1
- (no CPE)range: < 4.0.1-r1
- (no CPE)range: < 2.6.0-r2
- (no CPE)range: < 2.6.0-r2
- (no CPE)range: < 2.6.0-r2
- (no CPE)range: >= 2.0.0, < 2.6.3
- (no CPE)range: >= 2.0.0, <= 2.4.1
- (no CPE)range: >= 2.0.0, < 2.6.3
- (no CPE)range: >= 2.4.0, < 2.6.3
- (no CPE)range: >= 2.0.0, < 2.6.3
- Apache Software Foundation/Apache Kafkav5Range: Apache Kafka 2.0.x
Patches
Vulnerability mechanics
References
21- www.oracle.com/security-alerts/cpuapr2022.htmlnvdPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-3j6g-hxx5-3q26ghsaADVISORY
- kafka.apache.org/cve-listnvdVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2021-38153ghsaADVISORY
- www.oracle.com/security-alerts/cpujan2022.htmlnvdThird Party AdvisoryWEB
- www.oracle.com/security-alerts/cpujul2022.htmlnvdThird Party AdvisoryWEB
- lists.apache.org/thread.html/r26390c8b09ecfa356582d665b0c01f4cdcf16ac047c85f9f9f06a88c@%3Cdev.kafka.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r26390c8b09ecfa356582d665b0c01f4cdcf16ac047c85f9f9f06a88c@%3Cusers.kafka.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r35322aec467ddae34002690edaa4d9f16e7df9b5bf7164869b75b62c@%3Cdev.kafka.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r45cc0602d5f2cbb72e48896dfadf5e5b87ed85630449598b40e8f0be@%3Cdev.kafka.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r45cc0602d5f2cbb72e48896dfadf5e5b87ed85630449598b40e8f0be@%3Cusers.kafka.apache.org%3EghsaWEB
- lists.apache.org/thread.html/rd9ef217b09fdefaf32a4e1835b59b96629542db57e1f63edb8b006e6@%3Cdev.kafka.apache.org%3EghsaWEB
- lists.apache.org/thread.html/rd9ef217b09fdefaf32a4e1835b59b96629542db57e1f63edb8b006e6@%3Cusers.kafka.apache.org%3EghsaWEB
- support.confluent.io/hc/en-us/articles/4407632156692-CVE-2021-38153-Confluent-Platform-Vulnerability-Timing-attacksghsaWEB
- lists.apache.org/thread.html/r26390c8b09ecfa356582d665b0c01f4cdcf16ac047c85f9f9f06a88c%40%3Cdev.kafka.apache.org%3Envd
- lists.apache.org/thread.html/r26390c8b09ecfa356582d665b0c01f4cdcf16ac047c85f9f9f06a88c%40%3Cusers.kafka.apache.org%3Envd
- lists.apache.org/thread.html/r35322aec467ddae34002690edaa4d9f16e7df9b5bf7164869b75b62c%40%3Cdev.kafka.apache.org%3Envd
- lists.apache.org/thread.html/r45cc0602d5f2cbb72e48896dfadf5e5b87ed85630449598b40e8f0be%40%3Cdev.kafka.apache.org%3Envd
- lists.apache.org/thread.html/r45cc0602d5f2cbb72e48896dfadf5e5b87ed85630449598b40e8f0be%40%3Cusers.kafka.apache.org%3Envd
- lists.apache.org/thread.html/rd9ef217b09fdefaf32a4e1835b59b96629542db57e1f63edb8b006e6%40%3Cdev.kafka.apache.org%3Envd
- lists.apache.org/thread.html/rd9ef217b09fdefaf32a4e1835b59b96629542db57e1f63edb8b006e6%40%3Cusers.kafka.apache.org%3Envd
News mentions
0No linked articles in our index yet.