Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Maven

CVE-2021-38153

MEDIUM

Observable Discrepancy in Apache Kafka

Also known asBIT-kafka-2021-38153GHSA-3j6g-hxx5-3q26
Published
Sep 22, 2021
Updated
Apr 10, 2026
Affected
10 pkgs
Patched
9 / 10
Exploits
None indexed

EPSS Exploitation Probability

via FIRST.org ↗
5.8%probability of exploitation in next 30 days
Lower Risk92th percentile+4.21%
0.00%2.41%4.82%7.23%0.9%5.8%Dec 25Apr 26Jun 26

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

Blast Radius

10 pkgs affected
org.apache.kafka:kafka_2.11org.apache.kafka:kafka_2.12org.apache.kafka:kafka_2.12org.apache.kafka:kafka_2.12org.apache.kafka:kafka_2.13org.apache.kafka:kafka_2.13org.apache.kafka:kafka_2.13org.apache.kafka:kafka-clients+2 more

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

10 total 9 fixed
EcosystemPackageVulnerable rangeFix
Mavenorg.apache.kafka:kafka_2.112.0.0No fix
Mavenorg.apache.kafka:kafka_2.122.0.0&&< 2.6.32.6.3
Mavenorg.apache.kafka:kafka_2.122.7.0&&< 2.7.22.7.2
Mavenorg.apache.kafka:kafka_2.122.8.0&&< 2.8.12.8.1
Mavenorg.apache.kafka:kafka_2.132.4.0&&< 2.6.32.6.3
Mavenorg.apache.kafka:kafka_2.132.7.0&&< 2.7.22.7.2

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.kafka:kafka_2.11. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    No patched version of org.apache.kafka:kafka_2.11 has shipped for CVE-2021-38153 yet. Where your build allows, override or pin the dependency away from the vulnerable range, and apply any maintainer-recommended mitigation.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether CVE-2021-38153 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to CVE-2021-38153. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2021-38153 in your dependencies?

O3 detects CVE-2021-38153 across Maven dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.