# CVE-2024-56128: Apache Kafka: SCRAM authentication vulnerable to replay attacks when used without encryption

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.16% (percentile 67, 2026-11-26)
- **CWE:** CWE-303
- **Aliases:** BIT-kafka-2024-56128, GHSA-p7c9-8xx8-h74f
- **Published:** 2024-12-18T13:38:03.068Z
- **Modified:** 2026-09-10T03:50:21.892Z

## 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

## 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

- Maven `org.apache.kafka:kafka_2.13`: affected \>= 0.10.2.0, \< 3.7.2; fixed 3.7.2, 3.8.1 (osv)
- Maven `org.apache.kafka:kafka_2.12`: affected \>= 0.10.2.0, \< 3.7.2; fixed 3.7.2, 3.8.1 (osv)
- Maven `org.apache.kafka:kafka_2.11`: affected \>= 0.10.2.0, \<= 2.4.1; fixed no fix listed yet (osv)
- Maven `org.apache.kafka:kafka_2.10`: affected \>= 0.10.2.0, \<= 0.10.2.2; fixed no fix listed yet (osv)
- Apache Software Foundation Apache Kafka: \>= 0.10.2.0, \< 3.7.2; 3.8.0 (cvelist)

## 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).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://lists.apache.org/thread/84dh4so32lwn7wr6c5s9mwh381vx9wkw>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-56128>
- patch: <https://github.com/apache/kafka/commit/2cbc5bd3ca22185d9cd357c9db23a2cfb43a0fff>
- other: <https://datatracker.ietf.org/doc/html/rfc5802>
- other: <https://datatracker.ietf.org/doc/html/rfc5802#section-9>
- other: <https://kafka.apache.org/documentation/#security_sasl_scram_security>
- other: <http://www.openwall.com/lists/oss-security/2024/12/18/3>
- other: <https://github.com/apache/kafka>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56128>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-p7c9-8xx8-h74f> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-56128> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56128>
