CVE-2021-45105
Apache Log4j2 vulnerable to Improper Input Validation and Uncontrolled Recursion
Description
Apache Log4j2 versions 2.0-alpha1 through 2.16.0 (excluding 2.12.3) did not protect from uncontrolled recursion from self-referential lookups. This allows an attacker with control over Thread Context Map data to cause a denial of service when a crafted string is interpreted. This issue was fixed in Log4j 2.17.0 and 2.12.3.
Affected packages
Only the org.apache.logging.log4j:log4j-core package is directly affected by this vulnerability. The org.apache.logging.log4j:log4j-api should be kept at the same version as the org.apache.logging.log4j:log4j-core package to ensure compatability if in use.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.logging.log4j » log4j-core | < 2.3.1>= 2.4.0, < 2.12.3>= 2.13.0, < 2.17.0 | 2.3.1, 2.12.3, 2.17.0 |
| org.ops4j.pax.logging » pax-logging-log4j2 | >= 1.8.0, < 1.9.2>= 1.10.0, < 1.10.9>= 1.11.0, < 1.11.12>= 2.0.0, < 2.0.13 | 1.9.2, 1.10.9, 1.11.12, 2.0.13 |
Blast radius
51% of the dependent artifacts (10,922) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 120,690 |
| 2 hops | 262,700 |
| 3 hops | 406,405 |
| 4 hops | 324,914 |
| 5 hops | 228,279 |
| 6 hops | 115,742 |
Most used dependents
- org.apache.logging.log4j » log4j-slf4j-impl9,262 usages
- org.apache.logging.log4j » log4j-slf4j18-impl5,872 usages
- net.fabricmc » fabric-loader4,206 usages
- net.alchim31.maven » scala-maven-plugin3,328 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.logging.log4j » log4j-1.2-api2,485 usages
- org.wso2.carbon » org.wso2.carbon.core1,598 usages
- org.apache.kafka » kafka1,450 usages
- org.springframework.boot » spring-boot-starter-log4j21,448 usages
- org.apache.logging.log4j » log4j-jcl1,241 usages
- org.scala-sbt » sbt1,240 usages
- org.wso2.carbon » org.wso2.carbon.utils1,179 usages
- org.spigotmc » spigot1,073 usages
- org.apache.logging.log4j » log4j-web1,071 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-45105
- Webhttps://www.zerodayinitiative.com/advisories/ZDI-21-1541
- Webhttps://www.oracle.com/security-alerts/cpujul2022.html
- Webhttps://www.oracle.com/security-alerts/cpujan2022.html
- Webhttps://www.oracle.com/security-alerts/cpuapr2022.html
- Webhttps://www.kb.cert.org/vuls/id/930724
- Webhttps://www.debian.org/security/2021/dsa-5024
- Webhttps://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd
- Webhttps://security.netapp.com/advisory/ntap-20211218-0001
- Webhttps://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd
- Webhttps://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032
- Webhttps://logging.apache.org/log4j/2.x/security.html
- Webhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWYDQXNMUGAJ
- Webhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM4MEH7MXCY
- Webhttps://lists.debian.org/debian-lts-announce/2021/12/msg00017.html
- Webhttps://cert-portal.siemens.com/productcert/pdf/ssa-501673.pdf
- Webhttps://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf
- Webhttp://www.openwall.com/lists/oss-security/2021/12/19/1
