WaratekVRT Sign in

CVE-2021-38153 Apache Kafka

Affected softwareApache Kafka
Severity5.9 Medium CVSS 3.1 2 scores
Fixed in2.6.3, 2.7.2, 2.8.1
WeaknessCWE-203
Published22 Sep 2021
Updated17 Jun 2026

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.

Exploitation status

Exploited

Real-world exploitation reported by VulnCheck KEV. CISA has not confirmed it.

  • CISA KEV not listed
  • VulnCheck KEV listed Exploitation reported in the wild. 1 citation · earliest 2023-04-11.
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 6.2% chance in 30 days

VulnCheck KEV

Exploitation evidence from VulnCheck Known Exploited Vulnerabilities (VulnCheck KEV), used under VulnCheck's community terms. View CVE-2021-38153 in VulnCheck (free account).

EvidenceSourceDetailDate
Reported exploitation blog.cloudflare.com /ddos-threat-report-2023-q1 2023-04-11

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action unverified
  • Review automated Inferred
  • Record active
Decided by The affected package being open source on Maven, so the fix can be read
Finding This CVE affects an open-source Java library published on Maven Central (Maven packages: org.apache.kafka:kafka_2.11, org.apache.kafka:kafka_2.12, org.apache.kafka:kafka_2.13, org.apache.kafka:kafka-clients), so it is squarely in ARMR's territory and the source needed to understand the defect is public. That makes it a candidate for an ARMR patch rule. No rule exists and none is scheduled: the diff between the affected and fixed versions has not been read, and a closer look may find no hook point ARMR can act on.

CVSS

5.9 MEDIUM v3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 5.9 MEDIUM CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N NVD Primary published
CVSS 2.0 4.3 none AV:N/AC:M/Au:N/C:P/I:N/A:N NVD Primary

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update July 2022 ↗ CPU 2022-Q3 Oracle Communications Applications / Notifications (Apache Kafka) (Prior to 12.0.0.4.6, Prior to 12.0.0.5.1)
Oracle Critical Patch Update April 2022 ↗ CPU 2022-Q2 Oracle Communications / Policy (Apache Kafka) (1.15.0)
Oracle Financial Services Applications / Installers (Apache Kafka) (8.0.7.1, 8.0.7.2, 8.0.8.0, 8.0.8.1, 8.1.1.0, 8.1.1.1)
Oracle Financial Services Applications / Others (Apache Kafka) (8.0.6.0-8.0.9.0, 8.1.0.0-8.1.2.0)
Oracle Financial Services Applications / Third Party (Apache Kafka) (8.0.6.0-8.0.8.0, 8.1.1.0, 8.1.1.1, 8.1.2.0)
Oracle Critical Patch Update January 2022 ↗ CPU 2022-Q1 Oracle Construction and Engineering / Event Streams and Communications (Apache Kafka) (18.8, 19.12, 20.12, 21.12)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Communications Policy (Apache Kafka) 1.15.0 1.15.0
Oracle Communications Applications Notifications (Apache Kafka) Prior to 12.0.0.4.6, Prior to 12.0.0.5.1
Oracle Construction and Engineering Event Streams and Communications (Apache Kafka) 18.8, 19.12, 20.12, 21.12 18.8 · 19.12 · 20.12 · 21.12
Oracle Financial Services Applications Installers (Apache Kafka) 8.0.7.1, 8.0.7.2, 8.0.8.0, 8.0.8.1, 8.1.1.0, 8.1.1.1 8.0.7.1 · 8.0.7.2 · 8.0.8.0 · 8.0.8.1 · 8.1.1.0 · 8.1.1.1
Oracle Financial Services Applications Others (Apache Kafka) 8.0.6.0-8.0.9.0, 8.1.0.0-8.1.2.0
Oracle Financial Services Applications Third Party (Apache Kafka) 8.0.6.0-8.0.8.0, 8.1.1.0, 8.1.1.1, 8.1.2.0 8.1.1.0 · 8.1.1.1 · 8.1.2.0

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.kafka:kafka_2.11 2.0.0 none 2.4.1
org.apache.kafka:kafka_2.12 2.0.0 2.6.3 unbounded
org.apache.kafka:kafka_2.12 2.7.0 2.7.2 unbounded
org.apache.kafka:kafka_2.12 2.8.0 2.8.1 unbounded
org.apache.kafka:kafka_2.13 2.4.0 2.6.3 unbounded
org.apache.kafka:kafka_2.13 2.7.0 2.7.2 unbounded
org.apache.kafka:kafka_2.13 2.8.0 2.8.1 unbounded
org.apache.kafka:kafka-clients 2.0.0 2.6.3 unbounded
org.apache.kafka:kafka-clients 2.7.0 2.7.2 unbounded
org.apache.kafka:kafka-clients 2.8.0 2.8.1 unbounded

Products and versions

12 products, 33 version entries
SourceVendorProductSchemeAffected versions
nvd apache kafka generic ≥ 2.0.0 and < 2.6.3 · ≥ 2.7.0 and < 2.7.2 · 2.8.0
nvd oracle communications brm - elastic charging engine generic < 12.0.0.4.6 · 12.0.0.5.0
nvd oracle communications cloud native core policy generic 1.15.0
nvd oracle financial services analytical applications infrastructure generic ≥ 8.0.6.0 and ≤ 8.0.9.0 · ≥ 8.1.0.0.0 and ≤ 8.1.20
nvd oracle financial services behavior detection platform generic ≥ 8.0.6.0.0 and ≤ 8.0.8.0 · 8.1.1.0 · 8.1.1.1 · 8.1.2.0
nvd oracle financial services enterprise case management generic 8.0.7.1 · 8.0.7.2 · 8.0.8.0 · 8.0.8.1 · 8.1.1.0 · 8.1.1.1
nvd oracle primavera unifier generic 18.8 · 19.12 · 20.12 · 21.12
osv org.apache.kafka kafka-clients generic ≥ 2.0.0 and < 2.6.3 · ≥ 2.7.0 and < 2.7.2 · ≥ 2.8.0 and < 2.8.1
osv org.apache.kafka kafka_2.11 generic ≥ 2.0.0 and ≤ 2.4.1
osv org.apache.kafka kafka_2.12 generic ≥ 2.0.0 and < 2.6.3 · ≥ 2.7.0 and < 2.7.2 · ≥ 2.8.0 and < 2.8.1
osv org.apache.kafka kafka_2.13 generic ≥ 2.4.0 and < 2.6.3 · ≥ 2.7.0 and < 2.7.2 · ≥ 2.8.0 and < 2.8.1
nvd quarkus quarkus generic < 2.2.4

References

URLTags
https://github.com/apache/kafka PACKAGE
https://kafka.apache.org/cve-list WEB
https://lists.apache.org/thread.html/r26390c8b09ecfa356582d665b0c01f4cdcf16ac047c85f9f9f06a88c@%3Cdev.kafka.apache.org%3E WEB
https://lists.apache.org/thread.html/r26390c8b09ecfa356582d665b0c01f4cdcf16ac047c85f9f9f06a88c@%3Cusers.kafka.apache.org%3E WEB
https://lists.apache.org/thread.html/r35322aec467ddae34002690edaa4d9f16e7df9b5bf7164869b75b62c@%3Cdev.kafka.apache.org%3E WEB
https://lists.apache.org/thread.html/r45cc0602d5f2cbb72e48896dfadf5e5b87ed85630449598b40e8f0be@%3Cdev.kafka.apache.org%3E WEB
https://lists.apache.org/thread.html/r45cc0602d5f2cbb72e48896dfadf5e5b87ed85630449598b40e8f0be@%3Cusers.kafka.apache.org%3E WEB
https://lists.apache.org/thread.html/rd9ef217b09fdefaf32a4e1835b59b96629542db57e1f63edb8b006e6@%3Cdev.kafka.apache.org%3E WEB
https://lists.apache.org/thread.html/rd9ef217b09fdefaf32a4e1835b59b96629542db57e1f63edb8b006e6@%3Cusers.kafka.apache.org%3E WEB
https://support.confluent.io/hc/en-us/articles/4407632156692-CVE-2021-38153-Confluent-Platform-Vulnerability-Timing-attacks WEB

Timeline

Published2021-09-22By the CVE Program.
VulnCheck KEV: earliest evidence2023-04-11Date of the oldest evidence of exploitation in VulnCheck KEV's record. VulnCheck does not publish the date it listed the CVE.
NVD record modified2026-06-17NVD's own last-modified date for this record.