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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-12-18 · Modified: 2024-12-18
- Aliases: CGA-3chr-5f2j-vqqr, CGA-3m5m-2xxf-4xpj, CGA-3v87-g4wr-6c94, CGA-55wm-7m76-rrv5, CGA-56hq-c5gx-668j, CGA-57hp-2xg4-2vfv, CGA-7529-2f43-xh42, CGA-8x9p-mrv4-8vqg, CGA-94hw-jw47-x4cm, CGA-9h5c-655j-47mp, CGA-cv84-7qjh-vw27, CGA-cvpw-fv2x-6q8m, CGA-f278-w3p7-g8wc, CGA-f2m5-vc4v-hx2h, CGA-fgfr-c822-p788, CGA-fqcx-8rj6-qrw7, CGA-gg8q-jx4m-r7q7, CGA-gw54-9g3c-2fhq, CGA-m435-4gr5-4xw4, CGA-m8qq-rj2f-3m55, CGA-mmqc-x37f-9pch, CGA-q67f-4679-6828, CGA-qm3g-2qp9-87gc, CGA-wfcr-hq68-7w63, CGA-x8pr-gv8x-vwhg, CGA-xmqp-j8c7-5fwm, GHSA-p7c9-8xx8-h74f, BIT-kafka-2024-56128
- Record: https://cvemate.com/vulnerability/CVE-2024-56128 · JSON: https://cvemate.com/vulnerability/CVE-2024-56128/json

## Description

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

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS: 0.823%, percentile 58.643%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 32)

- apache software foundation apache kafka: ≥ 0.10.2.0, \< 3.7.2 \| 3.8.0
- apache kafka: ≥ 0.10.2.0, \< 3.7.2 \| 3.8.0
- chainguard kafka\_exporter-strimzi-compat (Chainguard): \< 0.46.1-r0
- chainguard kafka-strimzi-compat (Chainguard): \< 0.46.1-r0
- chainguard prometheus-jmx-exporter-strimzi-compat (Chainguard): \< 0.46.1-r0
- chainguard strimzi-kafka-operator (Chainguard): \< 0.46.1-r0
- chainguard strimzi-kafka-operator-cluster-operator (Chainguard): \< 0.46.1-r0
- chainguard strimzi-kafka-operator-kafka-agent (Chainguard): \< 0.46.1-r0
- chainguard strimzi-kafka-operator-kafka-base (Chainguard): \< 0.46.1-r0
- chainguard strimzi-kafka-operator-kafka-init (Chainguard): \< 0.46.1-r0
- chainguard strimzi-kafka-operator-kafka-thirdparty-libs (Chainguard): \< 0.46.1-r0
- chainguard strimzi-kafka-operator-kafka-thirdparty-libs-cc (Chainguard): \< 0.46.1-r0
- chainguard strimzi-kafka-operator-topic-operator (Chainguard): \< 0.46.1-r0
- chainguard strimzi-kafka-operator-tracing-agent (Chainguard): \< 0.46.1-r0
- chainguard strimzi-kafka-operator-user-operator (Chainguard): \< 0.46.1-r0
- wolfi kafka\_exporter-strimzi-compat (Wolfi): \< 0.46.1-r0
- wolfi kafka-strimzi-compat (Wolfi): \< 0.46.1-r0
- wolfi prometheus-jmx-exporter-strimzi-compat (Wolfi): \< 0.46.1-r0
- wolfi strimzi-kafka-operator (Wolfi): \< 0.46.1-r0
- wolfi strimzi-kafka-operator-cluster-operator (Wolfi): \< 0.46.1-r0

## References

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

---

Data as of 2026-12-05T04:23:39.421Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
