{"answers":{"affected":"3 open source packages ship an affected version, including org.apache.kafka:kafka-clients and kafka. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-27817 exists.","fix":"Upgrade org.apache.kafka:kafka-clients to 3.9.1 or later.","what":"CVE-2025-27817 is a high-severity server-side request forgery vulnerability in Apache Kafka Client, published on 10 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-27817 and fix it if it is affected.\n\nWhat it is: CVE-2025-27817 is a high-severity server-side request forgery vulnerability in Apache Kafka Client, published on 10 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-27817 exists.\n\nAffected packages and fixed versions:\n- org.apache.kafka:kafka-clients (Maven): affected from 3.1.0; fixed in 3.9.1\n- org.apache.kafka:kafka-clients (Maven): affected from 3.1.0; fixed in 3.9.1\n- kafka (Bitnami): affected from 3.1.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-27817/ (Markdown: https://insights.sbomify.com/CVE-2025-27817/index.md)","id":"CVE-2025-27817","markdown":"https://insights.sbomify.com/CVE-2025-27817/index.md","name":"CVE-2025-27817","record":{"aliases":["BIT-kafka-2025-27817","CLEANSTART-2026-BG00340","CLEANSTART-2026-DH52252","CLSA-2026-1789425652","ECHO-dd90-8305-7f06","GHSA-vgq5-3255-v292","MINI-67gf-hhw2-52rc","MINI-6fx5-m978-9737","MINI-c4wf-9wc5-wfq8","MINI-cj6j-wv2r-8j3w","MINI-jmqm-3xgr-cmvm","MINI-p6pj-79xr-qfc6","MINI-qx7v-246x-pf3m","MINI-v2j4-43m9-jcmc","MINI-w6m4-pr78-g878","ROOT-APP-MAVEN-CVE-2025-27817"],"analysis":{"component_type":"library","fix_type":"configuration_change","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Kafka Client","requires_auth":"none","summary":"Attackers with control over Kafka client configurations can read arbitrary files or trigger SSRF via SASL OAuthBearer endpoints, impacting applications allowing untrusted config input.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"kafka","vendor":"apache"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"A possible arbitrary file read and SSRF vulnerability has been identified in Apache Kafka Client. Apache Kafka Clients accept configuration data for setting the SASL/OAUTHBEARER connection with the brokers, including \"sasl.oauthbearer.token.endpoint.url\" and \"sasl.oauthbearer.jwks.endpoint.url\". Apache Kafka allows clients to read an arbitrary file and return the content in the error log, or sending requests to an unintended location. In applications where Apache Kafka Clients configurations can be specified by an untrusted party, attackers may use the \"sasl.oauthbearer.token.endpoint.url\" and \"sasl.oauthbearer.jwks.endpoint.url\" configuratin to read arbitrary contents of the disk and environment variables or make requests to an unintended location. In particular, this flaw may be used in Apache Kafka Connect to escalate from REST API access to filesystem/environment/URL access, which may be undesirable in certain environments, including SaaS products. \n\nSince Apache Kafka 3.9.1/4.0.0, we have added a system property (\"-Dorg.apache.kafka.sasl.oauthbearer.allowed.urls\") to set the allowed urls in SASL JAAS configuration. In 3.9.1, it accepts all urls by default for backward compatibility. However in 4.0.0 and newer, the default value is empty list and users have to set the allowed urls explicitly.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-07-04","github_poc":2,"max_poc_stars":5,"metasploit":0,"nuclei":1,"refs":[{"date":"2025-07-04T01:47:31Z","kind":"github_poc","ref":"https://github.com/iSee857/CVE-2025-27817","stars":5,"title":"Apache Kafka客户端未对用户输入进行严格验证和限制，未经身份验证的攻击者可通过构造恶意配置读取环境变量或磁盘任意内容，或向非预期位置发送请求，提升REST API的文件系统/环境/URL访问权限。"},{"date":"2025-10-13T04:39:53Z","kind":"github_poc","ref":"https://github.com/oriolrius/kafka-keycloak-oauth","stars":5,"title":"Apache Kafka 4.1.0 (KRaft) with Keycloak OAuth2 authentication using Strimzi - bypasses CVE-2025-27817 URL allowlist restriction"},{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-27817.yaml","stars":null,"title":"Apache Kafka Client - Arbitrary File Read"}],"tier":"weaponised"},"has_fix":true,"headline":"Apache Kafka Client: Arbitrary file read and SSRF vulnerability","id":"CVE-2025-27817","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"ssrf","year":"2025"},"n_packages":3,"n_references":1,"next":{"headline":"Apache Kafka: Possible RCE attack via SASL JAAS LdapLoginModule configuration","id":"CVE-2025-27818"},"packages":[{"ecosystem":"Bitnami","fixed":["3.9.1"],"introduced":["3.1.0"],"last_affected":[],"package":"kafka","purl":"pkg:bitnami/kafka","source":"BIT-kafka-2025-27817"},{"ecosystem":"Maven","fixed":["3.9.1"],"introduced":["3.1.0"],"last_affected":[],"package":"org.apache.kafka:kafka-clients","purl":null,"source":"GHSA-vgq5-3255-v292"},{"ecosystem":"Maven","fixed":["3.9.1"],"introduced":["3.1.0"],"last_affected":[],"package":"org.apache.kafka:kafka-clients","purl":"pkg:maven/org.apache.kafka/kafka-clients","source":"GHSA-vgq5-3255-v292"}],"prev":{"headline":"Deserialization in n/a","id":"CVE-2025-27816"},"products":["Apache Kafka Client"],"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":"Apache Kafka: Possible RCE attack via SASL JAAS LdapLoginModule configuration","id":"CVE-2025-27818","kev_date_added":null,"published":"2025-06-10"},{"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: 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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-06-10","vendors":["Apache Software Foundation"]},"summary":"Attackers with control over Kafka client configurations can read arbitrary files or trigger SSRF via SASL OAuthBearer endpoints, impacting applications allowing untrusted config input.","url":"https://insights.sbomify.com/CVE-2025-27817/"}