Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-56128

MEDIUM 5.3EPSS 67%

Apache Kafka: SCRAM authentication vulnerable to replay attacks when used without encryption

Also known as BIT-kafka-2024-56128, GHSA-p7c9-8xx8-h74f

Mitigation

  • Upgrade org.apache.kafka:kafka_2.13 to one of 3.7.2, 3.8.1 (or later in the same release line).
  • Upgrade org.apache.kafka:kafka_2.12 to one of 3.7.2, 3.8.1 (or later in the same release line).

Who should check

  • Projects that depend on Maven package org.apache.kafka:kafka_2.13 (>= 0.10.2.0, < 3.7.2)
  • Projects that depend on Maven package org.apache.kafka:kafka_2.12 (>= 0.10.2.0, < 3.7.2)
  • Projects that depend on Maven package org.apache.kafka:kafka_2.11 (>= 0.10.2.0, <= 2.4.1)
  • Projects that depend on Maven package org.apache.kafka:kafka_2.10 (>= 0.10.2.0, <= 0.10.2.2)
  • Anyone running Apache Software Foundation Apache Kafka >= 0.10.2.0, < 3.7.2; 3.8.0

Vulnerability facts

Affected
org.apache.kafka:kafka_2.13 >= 0.10.2.0, < 3.7.2; org.apache.kafka:kafka_2.12 >= 0.10.2.0, < 3.7.2; org.apache.kafka:kafka_2.11 >= 0.10.2.0, <= 2.4.1; org.apache.kafka:kafka_2.10 >= 0.10.2.0, <= 0.10.2.2
Fixed in
3.7.2, 3.8.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
5.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: None
  • Availability impact: None
EPSS
1.16% chance of exploitation in 30 days (percentile 67, 2026-11-26)
CWE
CWE-303
Published
Modified

Description

Incorrect Implementation of Authentication Algorithm in Apache Kafka's SCRAM implementation. Issue Summary: Apache Kafka's implementation of the Salted Challenge Response Authentication Mechanism (SCRAM) did not fully adhere to the requirements of RFC 5802 [1]. Specifically, as per RFC 5802, the server must verify that the nonce sent by the client in the second message matches the nonce sent by the server in its first message. However, Kafka's SCRAM implementation did not perform this validation. Impact: This vulnerability is exploitable only when an attacker has plaintext access to the SCRAM authentication exchange. However, the usage of SCRAM over plaintext is strongly discouraged as it is considered an insecure practice [2]. Apache Kafka recommends deploying SCRAM exclusively with TLS encryption to protect SCRAM exchanges from interception [3]. Deployments using SCRAM with TLS are not affected by this issue. How to Detect If You Are Impacted: If your deployment uses SCRAM authentication over plaintext communication channels (without TLS encryption), you are likely impacted. To check if TLS is enabled, review your server.properties configuration file for listeners property. If you have SASL_PLAINTEXT in the listeners, then you are likely impacted. Fix Details: The issue has been addressed by introducing nonce verification in the final message of the SCRAM authentication exchange to ensure compliance with RFC 5802. Affected Versions: Apache Kafka versions 0.10.2.0 through 3.9.0, excluding the fixed versions below. Fixed Versions: 3.9.0 3.8.1 3.7.2 Users are advised to upgrade to 3.7.2 or later to mitigate this issue. Recommendations for Mitigation: Users unable to upgrade to the fixed versions can mitigate the issue by: - Using TLS with SCRAM Authentication: Always deploy SCRAM over TLS to encrypt authentication exchanges and protect against interception. - Considering Alternative Authentication Mechanisms: Evaluate alternative authentication mechanisms, such as PLAIN, Kerberos or OAuth with TLS, which provide additional layers of security.

Affected and fixed versions

Package / productAffectedFixedSource
Maven org.apache.kafka:kafka_2.13>= 0.10.2.0, < 3.7.23.7.2, 3.8.1osv
Maven org.apache.kafka:kafka_2.12>= 0.10.2.0, < 3.7.23.7.2, 3.8.1osv
Maven org.apache.kafka:kafka_2.11>= 0.10.2.0, <= 2.4.1—osv
Maven org.apache.kafka:kafka_2.10>= 0.10.2.0, <= 0.10.2.2—osv
Apache Software Foundation Apache Kafka>= 0.10.2.0, < 3.7.2; 3.8.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-56128. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56128.md
Affected: org.apache.kafka:kafka_2.13 >= 0.10.2.0, < 3.7.2; org.apache.kafka:kafka_2.12 >= 0.10.2.0, < 3.7.2; org.apache.kafka:kafka_2.11 >= 0.10.2.0, <= 2.4.1; org.apache.kafka:kafka_2.10 >= 0.10.2.0, <= 0.10.2.2
Fixed in: 3.7.2, 3.8.1

Steps:
1. Search this machine and project for org.apache.kafka:kafka_2.13 (Maven), org.apache.kafka:kafka_2.12 (Maven), org.apache.kafka:kafka_2.11 (Maven), org.apache.kafka:kafka_2.10 (Maven), Apache Software Foundation Apache Kafka: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-56128 being exploited?

There is no confirmed exploitation: CVE-2024-56128 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.16% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-56128?

Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2024-56128?

org.apache.kafka:kafka_2.13 >= 0.10.2.0, < 3.7.2; org.apache.kafka:kafka_2.12 >= 0.10.2.0, < 3.7.2; org.apache.kafka:kafka_2.11 >= 0.10.2.0, <= 2.4.1; org.apache.kafka:kafka_2.10 >= 0.10.2.0, <= 0.10.2.2.

Is there a fix for CVE-2024-56128?

Yes. Fixed in 3.7.2, 3.8.1. Upgrade org.apache.kafka:kafka_2.13 to one of 3.7.2, 3.8.1 (or later in the same release line). Upgrade org.apache.kafka:kafka_2.12 to one of 3.7.2, 3.8.1 (or later in the same release line).

How do I check if I'm affected by CVE-2024-56128?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors