{"answers":{"affected":"7 open source packages ship an affected version, including org.apache.kafka:kafka_2.11, kafka and org.apache.kafka:kafka_2.12. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-27818 in the wild and no public exploit code.","fix":"Change a configuration setting.","what":"CVE-2025-27818 is a high-severity unsafe deserialization vulnerability in Apache Kafka, published on 10 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-27818 and fix it if it is affected.\n\nWhat it is: CVE-2025-27818 is a high-severity unsafe deserialization vulnerability in Apache Kafka, published on 10 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-27818 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.kafka:kafka_2.11 (Maven): affected from 2.3.0 up to 2.4.1; no fix listed\n- org.apache.kafka:kafka_2.11 (Maven): affected from 2.3.0 up to 2.4.1; no fix listed\n- kafka (Bitnami): affected from 2.3.0; fixed in 3.9.1\n- org.apache.kafka:kafka_2.12 (Maven): affected from 2.3.0; fixed in 3.9.1\n- org.apache.kafka:kafka_2.12 (Maven): affected from 2.3.0; fixed in 3.9.1\n- org.apache.kafka:kafka_2.13 (Maven): affected from 2.4.0; fixed in 3.9.1\n- org.apache.kafka:kafka_2.13 (Maven): affected from 2.4.0; fixed in 3.9.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-27818/ (Markdown: https://insights.sbomify.com/CVE-2025-27818/index.md)","id":"CVE-2025-27818","markdown":"https://insights.sbomify.com/CVE-2025-27818/index.md","name":"CVE-2025-27818","record":{"aliases":["BIT-kafka-2025-27818","ECHO-6971-a227-7838","GHSA-76qp-h5mr-frr4","MINI-5645-9xq5-xhrr","MINI-65m6-qc5c-22q4","MINI-c47f-c47w-gqpv","MINI-q3ww-5r8q-55q4","MINI-wgpc-gvrq-pg4p","MINI-xj4w-q84w-f8wx","ROOT-APP-MAVEN-CVE-2025-27818"],"analysis":{"component_type":"server_software","fix_type":"configuration_change","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Kafka","requires_auth":"low_privilege","summary":"Authenticated operators can trigger remote code execution on Kafka Connect by configuring malicious SASL JAAS LDAP settings that exploit unsafe deserialization.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"kafka","vendor":"apache"}],"cvss":{"score":8.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"A possible security vulnerability has been identified in Apache Kafka.\nThis requires access to a alterConfig to the cluster resource, or Kafka Connect worker, and the ability to create/modify connectors on it with an arbitrary Kafka client SASL JAAS config\nand a SASL-based security protocol, which has been possible on Kafka clusters since Apache Kafka 2.0.0 (Kafka Connect 2.3.0).\nWhen configuring the broker via config file or AlterConfig command, or connector via the Kafka Kafka Connect REST API, an authenticated operator can set the `sasl.jaas.config`\nproperty for any of the connector's Kafka clients to \"com.sun.security.auth.module.LdapLoginModule\", which can be done via the\n`producer.override.sasl.jaas.config`, `consumer.override.sasl.jaas.config`, or `admin.override.sasl.jaas.config` properties.\nThis will allow the server to connect to the attacker's LDAP server\nand deserialize the LDAP response, which the attacker can use to execute java deserialization gadget chains on the Kafka connect server.\nAttacker can cause unrestricted deserialization of untrusted data (or) RCE vulnerability when there are gadgets in the classpath.\n\nSince Apache Kafka 3.0.0, users are allowed to specify these properties in connector configurations for Kafka Connect clusters running with out-of-the-box\nconfigurations. Before Apache Kafka 3.0.0, users may not specify these properties unless the Kafka Connect cluster has been reconfigured with a connector\nclient override policy that permits them.\n\nSince Apache Kafka 3.9.1/4.0.0, we have added a system property (\"-Dorg.apache.kafka.disallowed.login.modules\") to disable the problematic login modules usage\nin SASL JAAS configuration. Also by default \"com.sun.security.auth.module.JndiLoginModule,com.sun.security.auth.module.LdapLoginModule\" are disabled in Apache Kafka Connect 3.9.1/4.0.0. \n\nWe advise the Kafka users to validate connector configurations and only allow trusted LDAP configurations. Also examine connector dependencies for \nvulnerable versions and either upgrade their connectors, upgrading that specific dependency, or removing the connectors as options for remediation. Finally,\nin addition to leveraging the \"org.apache.kafka.disallowed.login.modules\" system property, Kafka Connect users can also implement their own connector\nclient config override policy, which can be used to control which Kafka client properties can be overridden directly in a connector config and which cannot.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache Kafka: Possible RCE attack via SASL JAAS LdapLoginModule configuration","id":"CVE-2025-27818","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"deserialization","year":"2025"},"n_packages":7,"n_references":1,"next":{"headline":"Apache Kafka: Possible RCE/Denial of service attack via SASL JAAS JndiLoginModule configuration","id":"CVE-2025-27819"},"packages":[{"ecosystem":"Bitnami","fixed":["3.9.1"],"introduced":["2.3.0"],"last_affected":[],"package":"kafka","purl":"pkg:bitnami/kafka","source":"BIT-kafka-2025-27818"},{"ecosystem":"Maven","fixed":[],"introduced":["2.3.0"],"last_affected":["2.4.1"],"package":"org.apache.kafka:kafka_2.11","purl":null,"source":"GHSA-76qp-h5mr-frr4"},{"ecosystem":"Maven","fixed":[],"introduced":["2.3.0"],"last_affected":["2.4.1"],"package":"org.apache.kafka:kafka_2.11","purl":"pkg:maven/org.apache.kafka/kafka_2.11","source":"GHSA-76qp-h5mr-frr4"},{"ecosystem":"Maven","fixed":["3.9.1"],"introduced":["2.3.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.12","purl":null,"source":"GHSA-76qp-h5mr-frr4"},{"ecosystem":"Maven","fixed":["3.9.1"],"introduced":["2.3.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.12","purl":"pkg:maven/org.apache.kafka/kafka_2.12","source":"GHSA-76qp-h5mr-frr4"},{"ecosystem":"Maven","fixed":["3.9.1"],"introduced":["2.4.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.13","purl":null,"source":"GHSA-76qp-h5mr-frr4"},{"ecosystem":"Maven","fixed":["3.9.1"],"introduced":["2.4.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.13","purl":"pkg:maven/org.apache.kafka/kafka_2.13","source":"GHSA-76qp-h5mr-frr4"}],"prev":{"headline":"Apache Kafka Client: Arbitrary file read and SSRF vulnerability","id":"CVE-2025-27817"},"products":["Apache Kafka"],"published":"2025-06-10","related":[{"cvss_score":9.1,"headline":"Apache Kafka: Missing JWT token validation in OAUTHBEARER authentication","id":"CVE-2026-33557","kev_date_added":null,"published":"2026-04-20"},{"cvss_score":8.8,"headline":"Improper Input Validation in Apache Kafka","id":"CVE-2018-17196","kev_date_added":null,"published":"2019-07-11"},{"cvss_score":8.7,"headline":"Apache Kafka Clients: Kafka Producer Message Corruption and Misrouting via Buffer Pool Race Condition","id":"CVE-2026-35554","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":7.5,"headline":"Apache Kafka Client: Arbitrary file read and SSRF vulnerability","id":"CVE-2025-27817","kev_date_added":null,"published":"2025-06-10"},{"cvss_score":7.5,"headline":"Apache Kafka: Possible RCE/Denial of service attack via SASL JAAS JndiLoginModule configuration","id":"CVE-2025-27819","kev_date_added":null,"published":"2025-06-10"},{"cvss_score":7.5,"headline":"Unauthenticated clients may cause OutOfMemoryError on Apache Kafka Brokers","id":"CVE-2022-34917","kev_date_added":null,"published":"2022-09-20"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["Apache Software Foundation"]},"summary":"Authenticated operators can trigger remote code execution on Kafka Connect by configuring malicious SASL JAAS LDAP settings that exploit unsafe deserialization.","url":"https://insights.sbomify.com/CVE-2025-27818/"}