CVE-2021-38153
Observable Discrepancy in Apache Kafka
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.
Affected Maven artifacts (4)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.kafka » kafka-clients | >= 2.0.0, < 2.6.3>= 2.7.0, < 2.7.2>= 2.8.0, < 2.8.1 | 2.6.3, 2.7.2, 2.8.1 |
| org.apache.kafka » kafka_2.11 | >= 2.0.0, <= 2.4.1 | - |
| org.apache.kafka » kafka_2.12 | >= 2.0.0, < 2.6.3>= 2.7.0, < 2.7.2>= 2.8.0, < 2.8.1 | 2.6.3, 2.7.2, 2.8.1 |
| org.apache.kafka » kafka_2.13 | >= 2.4.0, < 2.6.3>= 2.7.0, < 2.7.2>= 2.8.0, < 2.8.1 | 2.6.3, 2.7.2, 2.8.1 |
Blast radius
58% of the dependent artifacts (2,813) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 69,687 |
| 2 hops | 104,896 |
| 3 hops | 62,393 |
| 4 hops | 17,494 |
| 5 hops | 3,568 |
| 6 hops | 889 |
Most used dependents
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.kafka » kafka1,450 usages
- org.springframework.kafka » spring-kafka1,063 usages
- org.apache.kafka » connect-api1,026 usages
- org.apache.spark » spark-mllib831 usages
- org.apache.hive » hive-exec699 usages
- org.apache.spark » spark-streaming670 usages
- org.apache.kafka » connect-transforms659 usages
- org.apache.spark » spark-hive633 usages
- org.apache.camel.kafkaconnector » camel-kafka-connector616 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.kafka » kafka-streams513 usages
- org.apache.spark » spark-catalyst502 usages
- org.apache.hive » hive-metastore480 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-38153
- Packagehttps://github.com/apache/kafka
- Webhttps://kafka.apache.org/cve-list
- Webhttps://lists.apache.org/thread.html/r26390c8b09ecfa356582d665b0c01f4cdcf16ac047c85f9f9f06a88c@%3Cdev.kafka.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r26390c8b09ecfa356582d665b0c01f4cdcf16ac047c85f9f9f06a88c@%3Cusers.kafka.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r35322aec467ddae34002690edaa4d9f16e7df9b5bf7164869b75b62c@%3Cdev.kafka.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r45cc0602d5f2cbb72e48896dfadf5e5b87ed85630449598b40e8f0be@%3Cdev.kafka.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r45cc0602d5f2cbb72e48896dfadf5e5b87ed85630449598b40e8f0be@%3Cusers.kafka.apache.org%3E
- Webhttps://lists.apache.org/thread.html/rd9ef217b09fdefaf32a4e1835b59b96629542db57e1f63edb8b006e6@%3Cdev.kafka.apache.org%3E
- Webhttps://lists.apache.org/thread.html/rd9ef217b09fdefaf32a4e1835b59b96629542db57e1f63edb8b006e6@%3Cusers.kafka.apache.org%3E
- Webhttps://support.confluent.io/hc/en-us/articles/4407632156692-CVE-2021-38153-Confluent-Platform-Vulnerability-Timing-attacks
- Webhttps://www.oracle.com/security-alerts/cpuapr2022.html
- Webhttps://www.oracle.com/security-alerts/cpujan2022.html
- Webhttps://www.oracle.com/security-alerts/cpujul2022.html
