{"id":"CVE-2021-38153","aliases":["CVE-2021-38153","GHSA-3j6g-hxx5-3q26","BIT-KAFKA-2021-38153"],"related":[],"kind":"vulnerability","state":"published","title":"Timing Attack Vulnerability for Apache Kafka Connect and Clients","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Algunos componentes de Apache Kafka usan \"Arrays.equals\" para comprender una contraseña o clave, lo cual es vulnerable a ataques de tiempo que hacen que los ataques de fuerza bruta para dichas credenciales tengan más probabilidades de éxito. Los usuarios deben actualizar a la versión 2.8.1 o superior, o a la 3.0.0 o superior, donde se ha corregido esta vulnerabilidad. Las versiones afectadas son 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 y 2.8.0","source":"nvd"}],"published":"2021-09-22T09:05:11.000Z","modified":"2026-09-08T08:48:23.727Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-203"],"affected":[{"ranges":[{"type":"custom","introduced":"Apache Kafka 2.0.x","lastAffected":"2.0.1","status":"affected"},{"type":"custom","introduced":"Apache Kafka 2.1.x","lastAffected":"2.1.1","status":"affected"},{"type":"custom","introduced":"Apache Kafka 2.2.x","lastAffected":"2.2.2","status":"affected"},{"type":"custom","introduced":"Apache Kafka 2.3.x","lastAffected":"2.3.1","status":"affected"},{"type":"custom","introduced":"Apache Kafka 2.4.x","lastAffected":"2.4.1","status":"affected"},{"type":"custom","introduced":"Apache Kafka 2.5.x","lastAffected":"2.5.1","status":"affected"},{"type":"custom","introduced":"Apache Kafka 2.6.x","lastAffected":"2.6.2","status":"affected"},{"type":"custom","introduced":"Apache Kafka 2.7.x","lastAffected":"2.7.1","status":"affected"},{"type":"custom","introduced":"Apache Kafka 2.8.x","lastAffected":"2.8.0","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Kafka","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","lastAffected":"2.4.1"}],"ecosystem":"Maven","package":"org.apache.kafka:kafka_2.11","purl":"pkg:maven/org.apache.kafka/kafka_2.11","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.6.3"}],"ecosystem":"Maven","package":"org.apache.kafka:kafka_2.12","purl":"pkg:maven/org.apache.kafka/kafka_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.7.0","status":"affected","fixed":"2.7.2"}],"ecosystem":"Maven","package":"org.apache.kafka:kafka_2.12","purl":"pkg:maven/org.apache.kafka/kafka_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.8.0","status":"affected","fixed":"2.8.1"}],"ecosystem":"Maven","package":"org.apache.kafka:kafka_2.12","purl":"pkg:maven/org.apache.kafka/kafka_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.4.0","status":"affected","fixed":"2.6.3"}],"ecosystem":"Maven","package":"org.apache.kafka:kafka_2.13","purl":"pkg:maven/org.apache.kafka/kafka_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.7.0","status":"affected","fixed":"2.7.2"}],"ecosystem":"Maven","package":"org.apache.kafka:kafka_2.13","purl":"pkg:maven/org.apache.kafka/kafka_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.8.0","status":"affected","fixed":"2.8.1"}],"ecosystem":"Maven","package":"org.apache.kafka:kafka_2.13","purl":"pkg:maven/org.apache.kafka/kafka_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.6.3"}],"ecosystem":"Maven","package":"org.apache.kafka:kafka-clients","purl":"pkg:maven/org.apache.kafka/kafka-clients","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.7.0","status":"affected","fixed":"2.7.2"}],"ecosystem":"Maven","package":"org.apache.kafka:kafka-clients","purl":"pkg:maven/org.apache.kafka/kafka-clients","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.8.0","status":"affected","fixed":"2.8.1"}],"ecosystem":"Maven","package":"org.apache.kafka:kafka-clients","purl":"pkg:maven/org.apache.kafka/kafka-clients","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"2.6.3"},{"status":"affected","introduced":"2.7.0","fixed":"2.7.2"},{"status":"affected","version":"2.8.0"}],"vendor":"apache","product":"kafka","cpe":"cpe:2.3:a:apache:kafka:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"2.2.4"}],"vendor":"quarkus","product":"quarkus","cpe":"cpe:2.3:a:quarkus:quarkus:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"12.0.0.4.6"},{"status":"affected","version":"12.0.0.5.0"}],"vendor":"oracle","product":"communications_brm_-_elastic_charging_engine","cpe":"cpe:2.3:a:oracle:communications_brm_-_elastic_charging_engine:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.15.0"}],"vendor":"oracle","product":"communications_cloud_native_core_policy","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_policy:1.15.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"8.0.6.0","lastAffected":"8.0.9.0"},{"status":"affected","introduced":"8.1.0.0.0","lastAffected":"8.1.20"}],"vendor":"oracle","product":"financial_services_analytical_applications_infrastructure","cpe":"cpe:2.3:a:oracle:financial_services_analytical_applications_infrastructure:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"8.0.6.0.0","lastAffected":"8.0.8.0"},{"status":"affected","version":"8.1.1.0"},{"status":"affected","version":"8.1.1.1"},{"status":"affected","version":"8.1.2.0"}],"vendor":"oracle","product":"financial_services_behavior_detection_platform","cpe":"cpe:2.3:a:oracle:financial_services_behavior_detection_platform:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0.7.1"},{"status":"affected","version":"8.0.7.2"},{"status":"affected","version":"8.0.8.0"},{"status":"affected","version":"8.0.8.1"},{"status":"affected","version":"8.1.1.0"},{"status":"affected","version":"8.1.1.1"}],"vendor":"oracle","product":"financial_services_enterprise_case_management","cpe":"cpe:2.3:a:oracle:financial_services_enterprise_case_management:8.0.7.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"18.8"},{"status":"affected","version":"19.12"},{"status":"affected","version":"20.12"},{"status":"affected","version":"21.12"}],"vendor":"oracle","product":"primavera_unifier","cpe":"cpe:2.3:a:oracle:primavera_unifier:18.8:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.6.3"},{"type":"semver","introduced":"2.7.0","status":"affected","fixed":"2.7.2"},{"type":"semver","introduced":"2.8.0","status":"affected","fixed":"2.8.1"}],"ecosystem":"Bitnami","package":"kafka","purl":"pkg:bitnami/kafka","source":"bitnami"}],"references":[{"url":"https://kafka.apache.org/cve-list","tags":["advisory","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/r35322aec467ddae34002690edaa4d9f16e7df9b5bf7164869b75b62c%40%3Cdev.kafka.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/r45cc0602d5f2cbb72e48896dfadf5e5b87ed85630449598b40e8f0be%40%3Cdev.kafka.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/r45cc0602d5f2cbb72e48896dfadf5e5b87ed85630449598b40e8f0be%40%3Cusers.kafka.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/rd9ef217b09fdefaf32a4e1835b59b96629542db57e1f63edb8b006e6%40%3Cusers.kafka.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/rd9ef217b09fdefaf32a4e1835b59b96629542db57e1f63edb8b006e6%40%3Cdev.kafka.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/r26390c8b09ecfa356582d665b0c01f4cdcf16ac047c85f9f9f06a88c%40%3Cusers.kafka.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/r26390c8b09ecfa356582d665b0c01f4cdcf16ac047c85f9f9f06a88c%40%3Cdev.kafka.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["advisory","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38153","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/apache/kafka","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r26390c8b09ecfa356582d665b0c01f4cdcf16ac047c85f9f9f06a88c@%3Cdev.kafka.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r26390c8b09ecfa356582d665b0c01f4cdcf16ac047c85f9f9f06a88c@%3Cusers.kafka.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r35322aec467ddae34002690edaa4d9f16e7df9b5bf7164869b75b62c@%3Cdev.kafka.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r45cc0602d5f2cbb72e48896dfadf5e5b87ed85630449598b40e8f0be@%3Cdev.kafka.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r45cc0602d5f2cbb72e48896dfadf5e5b87ed85630449598b40e8f0be@%3Cusers.kafka.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/rd9ef217b09fdefaf32a4e1835b59b96629542db57e1f63edb8b006e6@%3Cdev.kafka.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/rd9ef217b09fdefaf32a4e1835b59b96629542db57e1f63edb8b006e6@%3Cusers.kafka.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://support.confluent.io/hc/en-us/articles/4407632156692-CVE-2021-38153-Confluent-Platform-Vulnerability-Timing-attacks","tags":["web"],"sources":["ghsa"]}],"credits":["Apache Kafka would like to thank J. Santilli for reporting this issue."],"assigner":"apache","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-38153","url":"https://www.cve.org/CVERecord?id=CVE-2021-38153","licence":"CVE Terms of Use","modified":"2024-08-04T01:37:15.929Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3j6g-hxx5-3q26","url":"https://github.com/advisories/GHSA-3j6g-hxx5-3q26","licence":"CC-BY-4.0","modified":"2026-08-07T08:12:11.139Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-38153","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38153","licence":"Public domain","modified":"2026-06-17T04:01:35.023Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-KAFKA-2021-38153","url":"https://osv.dev/vulnerability/BIT-KAFKA-2021-38153","licence":"Apache-2.0","modified":"2026-09-08T08:48:23.727Z"}],"updatedAt":"2026-11-25T22:58:04.094Z","epss":{"score":0.05468,"percentile":0.92927,"date":"2026-12-01T12:00:22.000Z"}}