{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.kafka:connect. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-25194 exists.","fix":"Upgrade org.apache.kafka:connect to 3.4.0 or later.","what":"CVE-2023-25194 is a high-severity unsafe deserialization vulnerability in Apache Kafka Connect API, published on 7 Feb 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-25194 and fix it if it is affected.\n\nWhat it is: CVE-2023-25194 is a high-severity unsafe deserialization vulnerability in Apache Kafka Connect API, published on 7 Feb 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-25194 exists.\n\nAffected packages and fixed versions:\n- org.apache.kafka:connect (Maven): affected from 2.3.0; fixed in 3.4.0\n- org.apache.kafka:connect (Maven): affected from 2.3.0; fixed in 3.4.0\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-2023-25194/ (Markdown: https://insights.sbomify.com/CVE-2023-25194/index.md)","id":"CVE-2023-25194","markdown":"https://insights.sbomify.com/CVE-2023-25194/index.md","name":"CVE-2023-25194","record":{"aliases":["CLSA-2024-1733097627","GHSA-26f8-x7cc-wqpc"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Kafka Connect","requires_auth":"low_privilege","summary":"Authenticated attackers can achieve remote code execution or denial of service by configuring malicious SASL JAAS settings in Kafka Connect connectors.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"kafka_connect","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 Connect API.\nThis requires access to a 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 Connect clusters since Apache Kafka Connect 2.3.0.\nWhen configuring the connector via the 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.JndiLoginModule\", 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.4.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\" is disabled in Apache Kafka Connect 3.4.0. \n\nWe advise the Kafka Connect users to validate connector configurations and only allow trusted JNDI 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":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2023-02-07","github_poc":3,"max_poc_stars":92,"metasploit":1,"nuclei":1,"refs":[{"date":"2023-02-09T10:49:46Z","kind":"github_poc","ref":"https://github.com/ohnonoyesyes/CVE-2023-25194","stars":92,"title":null},{"date":"2024-04-17T13:36:34Z","kind":"github_poc","ref":"https://github.com/vulncheck-oss/cve-2023-25194","stars":4,"title":"A go-exploit for Apache Druid CVE-2023-25194"},{"date":"2023-12-28T04:24:02Z","kind":"github_poc","ref":"https://github.com/YongYe-Security/CVE-2023-25194","stars":2,"title":"CVE-2023-25194 Scan"},{"date":"2023-02-07","kind":"metasploit","ref":"exploit/multi/http/apache_druid_cve_2023_25194","stars":null,"title":"Apache Druid JNDI Injection RCE"},{"date":null,"kind":"nuclei","ref":"http/cves/2023/CVE-2023-25194.yaml","stars":null,"title":"Apache Druid Kafka Connect - Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"Apache Kafka Connect vulnerable to Deserialization of Untrusted Data","id":"CVE-2023-25194","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"deserialization","year":"2023"},"n_packages":2,"n_references":3,"next":{"headline":"Apache Fineract: SSRF template type vulnerability in certain authenticated users","id":"CVE-2023-25195"},"packages":[{"ecosystem":"Maven","fixed":["3.4.0"],"introduced":["2.3.0"],"last_affected":[],"package":"org.apache.kafka:connect","purl":null,"source":"GHSA-26f8-x7cc-wqpc"},{"ecosystem":"Maven","fixed":["3.4.0"],"introduced":["2.3.0"],"last_affected":[],"package":"org.apache.kafka:connect","purl":"pkg:maven/org.apache.kafka/connect","source":"GHSA-26f8-x7cc-wqpc"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2023-25193"},"products":["Apache Kafka Connect API"],"published":"2023-02-07","related":[],"sources":[{"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)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-25","vendors":["Apache Software Foundation"]},"summary":"Authenticated attackers can achieve remote code execution or denial of service by configuring malicious SASL JAAS settings in Kafka Connect connectors.","url":"https://insights.sbomify.com/CVE-2023-25194/"}