{"cve":"CVE-2024-56128","nvd":{"published":"2024-12-18T14:15:23.277","modified":"2026-06-17T08:11:43.990","status":"Analyzed","description":"Incorrect Implementation of Authentication Algorithm in Apache Kafka's SCRAM implementation.\n\nIssue Summary:\nApache Kafka's implementation of the Salted Challenge Response Authentication Mechanism (SCRAM) did not fully adhere to the requirements of RFC 5802 [1].\nSpecifically, 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.\nHowever, Kafka's SCRAM implementation did not perform this validation.\n\nImpact:\nThis vulnerability is exploitable only when an attacker has plaintext access to the SCRAM authentication exchange. However, the usage of SCRAM over plaintext is strongly\ndiscouraged as it is considered an insecure practice [2]. Apache Kafka recommends deploying SCRAM exclusively with TLS encryption to protect SCRAM exchanges from interception [3].\nDeployments using SCRAM with TLS are not affected by this issue.\n\nHow to Detect If You Are Impacted:\nIf your deployment uses SCRAM authentication over plaintext communication channels (without TLS encryption), you are likely impacted.\nTo 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.\n\nFix Details:\nThe issue has been addressed by introducing nonce verification in the final message of the SCRAM authentication exchange to ensure compliance with RFC 5802.\n\nAffected Versions:\nApache Kafka versions 0.10.2.0 through 3.9.0, excluding the fixed versions below.\n\nFixed Versions:\n3.9.0\n3.8.1\n3.7.2\n\nUsers are advised to upgrade to 3.7.2 or later to mitigate this issue.\n\nRecommendations for Mitigation:\nUsers unable to upgrade to the fixed versions can mitigate the issue by:\n- Using TLS with SCRAM Authentication:\nAlways deploy SCRAM over TLS to encrypt authentication exchanges and protect against interception.\n- Considering Alternative Authentication Mechanisms:\nEvaluate alternative authentication mechanisms, such as PLAIN, Kerberos or OAuth with TLS, which provide additional layers of security.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3},"cwes":["CWE-303"],"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"],"products":["apache:kafka"],"source":"nvd","synced_at":"2026-10-19T21:57:56.913276502+00:00"},"epss":{"cve":"CVE-2024-56128","score":0.00817,"percentile":0.57125,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-p7c9-8xx8-h74f","url":"https://osv.dev/vulnerability/GHSA-p7c9-8xx8-h74f","summary":"Apache Kafka's SCRAM implementation Incorrectly Implements Authentication Algorithm","modified":"2026-09-10T03:50:21.892841354Z","packages":[{"ecosystem":"Maven","name":"org.apache.kafka:kafka_2.13","purl":"pkg:maven/org.apache.kafka/kafka_2.13","ranges":[">=0.10.2.0 <3.7.2"],"fixed":["3.7.2"]},{"ecosystem":"Maven","name":"org.apache.kafka:kafka_2.13","purl":"pkg:maven/org.apache.kafka/kafka_2.13","ranges":[">=3.8.0 <3.8.1"],"fixed":["3.8.1"]},{"ecosystem":"Maven","name":"org.apache.kafka:kafka_2.12","purl":"pkg:maven/org.apache.kafka/kafka_2.12","ranges":[">=0.10.2.0 <3.7.2"],"fixed":["3.7.2"]},{"ecosystem":"Maven","name":"org.apache.kafka:kafka_2.12","purl":"pkg:maven/org.apache.kafka/kafka_2.12","ranges":[">=3.8.0 <3.8.1"],"fixed":["3.8.1"]},{"ecosystem":"Maven","name":"org.apache.kafka:kafka_2.11","purl":"pkg:maven/org.apache.kafka/kafka_2.11","ranges":[">=0.10.2.0 <=2.4.1"],"fixed":[]},{"ecosystem":"Maven","name":"org.apache.kafka:kafka_2.10","purl":"pkg:maven/org.apache.kafka/kafka_2.10","ranges":[">=0.10.2.0 <=0.10.2.2"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}