{"answers":{"affected":"21 open source packages ship an affected version, including org.apache.kafka:kafka-clients, kafka and org.apache.kafka:kafka_2.11. It affects 8 products.","exploited":"There is no known exploitation of CVE-2021-38153 in the wild and no public exploit code.","fix":"Upgrade org.apache.kafka:kafka-clients to a fixed version for your release line: 2.6.3, 2.7.2 or 2.8.1.","what":"CVE-2021-38153 is a medium-severity vulnerability in Oracle Communications Cloud Native Core Policy, published on 22 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-38153 and fix it if it is affected.\n\nWhat it is: CVE-2021-38153 is a medium-severity vulnerability in Oracle Communications Cloud Native Core Policy, published on 22 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-38153 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.kafka:kafka-clients (Maven): affected from 2.0.0; fixed in 2.6.3\n- org.apache.kafka:kafka-clients (Maven): affected from 2.0.0; fixed in 2.6.3\n- org.apache.kafka:kafka-clients (Maven): affected from 2.7.0; fixed in 2.7.2\n- org.apache.kafka:kafka-clients (Maven): affected from 2.7.0; fixed in 2.7.2\n- org.apache.kafka:kafka-clients (Maven): affected from 2.8.0; fixed in 2.8.1\n- org.apache.kafka:kafka-clients (Maven): affected from 2.8.0; fixed in 2.8.1\n- kafka (Bitnami): affected from 2.0.0; fixed in 2.6.3, 2.7.2, 2.8.1\n- org.apache.kafka:kafka_2.11 (Maven): affected from 2.0.0 up to 2.4.1; no fix listed\n- org.apache.kafka:kafka_2.11 (Maven): affected from 2.0.0 up to 2.4.1; no fix listed\n- org.apache.kafka:kafka_2.12 (Maven): affected from 2.0.0; fixed in 2.6.3\n- org.apache.kafka:kafka_2.12 (Maven): affected from 2.0.0; fixed in 2.6.3\n- org.apache.kafka:kafka_2.12 (Maven): affected from 2.7.0; fixed in 2.7.2\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-2021-38153/ (Markdown: https://insights.sbomify.com/CVE-2021-38153/index.md)","id":"CVE-2021-38153","markdown":"https://insights.sbomify.com/CVE-2021-38153/index.md","name":"CVE-2021-38153","record":{"aliases":["BIT-kafka-2021-38153","GHSA-3j6g-hxx5-3q26","UBUNTU-CVE-2021-38153"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Kafka","requires_auth":"none","summary":"Timing attacks on password validation allow attackers to brute force credentials, potentially leading to unauthorized access to Apache Kafka Connect and clients.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"kafka","vendor":"apache"},{"product":"communications_brm_-_elastic_charging_engine","vendor":"oracle"},{"product":"communications_cloud_native_core_policy","vendor":"oracle"},{"product":"financial_services_analytical_applications_infrastructure","vendor":"oracle"},{"product":"financial_services_behavior_detection_platform","vendor":"oracle"},{"product":"financial_services_enterprise_case_management","vendor":"oracle"},{"product":"primavera_unifier","vendor":"oracle"},{"product":"quarkus","vendor":"quarkus"}],"cvss":{"score":5.9,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-203","name":"Observable Discrepancy"}],"description":"Some components in Apache Kafka use `Arrays.equals` to validate a password or key, which is vulnerable to timing attacks that make brute force attacks for such credentials more likely to be successful. Users should upgrade to 2.8.1 or higher, or 3.0.0 or higher where this vulnerability has been fixed. The affected versions include Apache Kafka 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0, 2.6.1, 2.6.2, 2.7.0, 2.7.1, and 2.8.0.","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":"Timing Attack Vulnerability for Apache Kafka Connect and Clients","id":"CVE-2021-38153","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"oracle:communications_cloud_native_core_policy","products":["oracle:communications_cloud_native_core_policy","oracle:financial_services_analytical_applications_infrastructure","oracle:primavera_unifier"],"type":"information_disclosure","year":"2021"},"n_packages":21,"n_references":11,"next":{"headline":"Missing authorization in n/a","id":"CVE-2021-38154"},"packages":[{"ecosystem":"Bitnami","fixed":["2.6.3","2.7.2","2.8.1"],"introduced":["2.0.0","2.7.0","2.8.0"],"last_affected":[],"package":"kafka","purl":"pkg:bitnami/kafka","source":"BIT-kafka-2021-38153"},{"ecosystem":"Maven","fixed":["2.6.3"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.kafka:kafka-clients","purl":null,"source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.6.3"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.kafka:kafka-clients","purl":"pkg:maven/org.apache.kafka/kafka-clients","source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.7.2"],"introduced":["2.7.0"],"last_affected":[],"package":"org.apache.kafka:kafka-clients","purl":null,"source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.7.2"],"introduced":["2.7.0"],"last_affected":[],"package":"org.apache.kafka:kafka-clients","purl":"pkg:maven/org.apache.kafka/kafka-clients","source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.8.1"],"introduced":["2.8.0"],"last_affected":[],"package":"org.apache.kafka:kafka-clients","purl":null,"source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.8.1"],"introduced":["2.8.0"],"last_affected":[],"package":"org.apache.kafka:kafka-clients","purl":"pkg:maven/org.apache.kafka/kafka-clients","source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":[],"introduced":["2.0.0"],"last_affected":["2.4.1"],"package":"org.apache.kafka:kafka_2.11","purl":null,"source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":[],"introduced":["2.0.0"],"last_affected":["2.4.1"],"package":"org.apache.kafka:kafka_2.11","purl":"pkg:maven/org.apache.kafka/kafka_2.11","source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.6.3"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.12","purl":null,"source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.6.3"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.12","purl":"pkg:maven/org.apache.kafka/kafka_2.12","source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.7.2"],"introduced":["2.7.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.12","purl":null,"source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.7.2"],"introduced":["2.7.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.12","purl":"pkg:maven/org.apache.kafka/kafka_2.12","source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.8.1"],"introduced":["2.8.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.12","purl":null,"source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.8.1"],"introduced":["2.8.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.12","purl":"pkg:maven/org.apache.kafka/kafka_2.12","source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.6.3"],"introduced":["2.4.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.13","purl":null,"source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.6.3"],"introduced":["2.4.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.13","purl":"pkg:maven/org.apache.kafka/kafka_2.13","source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.7.2"],"introduced":["2.7.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.13","purl":null,"source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.7.2"],"introduced":["2.7.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.13","purl":"pkg:maven/org.apache.kafka/kafka_2.13","source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.8.1"],"introduced":["2.8.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.13","purl":null,"source":"GHSA-3j6g-hxx5-3q26"},{"ecosystem":"Maven","fixed":["2.8.1"],"introduced":["2.8.0"],"last_affected":[],"package":"org.apache.kafka:kafka_2.13","purl":"pkg:maven/org.apache.kafka/kafka_2.13","source":"GHSA-3j6g-hxx5-3q26"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-38152"},"products":["Apache Kafka"],"published":"2021-09-22","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 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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["Apache Software Foundation"]},"summary":"Timing attacks on password validation allow attackers to brute force credentials, potentially leading to unauthorized access to Apache Kafka Connect and clients.","url":"https://insights.sbomify.com/CVE-2021-38153/"}