Vulnerability GHSA-7rjr-3q55-vv33

Critical
CRITICAL RISK
CVSS Score: 9.0
Score Range: 9.0–10.0
Critical severity vulnerabilities (CVSS 9.0–10.0). These represent the highest impact issues.
4 years ago
December 14, 2021 at 06:01 PM UTC
Incomplete fix for Apache Log4j vulnerability
2.1.0 - 2.5.0 and 2.7.0 and 2.9.0 - 2.10.0 and 2.12.0 - 2.12.1 and 2.14.0 - 2.15.0
2.1.0 - 2.5.0 and 2.7.0 and 2.9.0 - 2.10.0 and 2.12.0 - 2.12.1 and 2.14.0 - 2.15.0

Summary

Incomplete fix for Apache Log4j vulnerability

Details

Impact

The fix to address CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. This could allow attackers with control over Thread Context Map (MDC) input data when the logging configuration uses a non-default Pattern Layout with either a Context Lookup (for example, $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC) to craft malicious input data using a JNDI Lookup pattern resulting in a remote code execution (RCE) attack.

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.

Mitigation

Log4j 2.16.0 fixes this issue by removing support for message lookup patterns and disabling JNDI functionality by default. This issue can be mitigated in prior releases (< 2.16.0) by removing the JndiLookup class from the classpath (example: zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class).

Log4j 2.15.0 restricts JNDI LDAP lookups to localhost by default. Note that previous mitigations involving configuration such as to set the system property log4j2.formatMsgNoLookups to true do NOT mitigate this specific vulnerability.

Related Vulnerabilities

Other vulnerabilities affecting the same packages

Medium Risk
5 months ago
Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden characters
2.1.0 - 2.2.0 and 2.4.0 - 2.5.0 and 2.7.0 and 2.9.0 - 2.10.0 and 2.14.0 - 2.16.0 and 2.18.0 - 3.0.0 GHSA-3pxv-7cmr-fjr4
2.1.0 - 2.2.0 and 2.4.0 - 2.5.0 and 2.7.0 and 2.9.0 - 2.10.0 and 2.14.0 - 2.16.0 and 2.18.0 - 3.0.0 GHSA-3pxv-7cmr-fjr4
Medium Risk
5 months ago
Apache Log4j Core: log injection in `Rfc5424Layout` due to silent configuration incompatibility
2.21.0 - 3.0.0 GHSA-445c-vh5m-36rj
2.21.0 - 3.0.0 GHSA-445c-vh5m-36rj
Medium Risk
5 months ago
Apache Log4j Core: `verifyHostName` attribute silently ignored in TLS configuration
2.14.0 - 2.16.0 and 2.18.0 - 3.0.0 GHSA-6hg6-v5c8-fphq
2.14.0 - 2.16.0 and 2.18.0 - 3.0.0 GHSA-6hg6-v5c8-fphq
Medium Risk
9 months ago
Apache Log4j does not verify the TLS hostname in its Socket Appender
2.1.0 - 2.2.0 and 2.4.0 - 2.5.0 and 2.7.0 and 2.9.0 - 2.10.0 and 2.14.0 - 2.16.0 and 2.18.0 - 2.23.1 GHSA-vc5p-v9hr-52mj
2.1.0 - 2.2.0 and 2.4.0 - 2.5.0 and 2.7.0 and 2.9.0 - 2.10.0 and 2.14.0 - 2.16.0 and 2.18.0 - 2.23.1 GHSA-vc5p-v9hr-52mj
High Risk
3 years ago
Apache Log4j 1.x (EOL) allows Denial of Service (DoS)
==2.0-alpha1, ==2.0-alpha2, ==2.0-beta1, ==2.0-beta2, ==2.0-beta3, ==2.0-beta4, ==2.0-beta5, ==2.0-beta6, ==2.0-beta7, ==2.0-beta8, ==2.0-beta9, ==2.0-rc1, ==2.0-rc2 GHSA-vp98-w2p3-mv35
==2.0-alpha1, ==2.0-alpha2, ==2.0-beta1, ==2.0-beta2, ==2.0-beta3, ==2.0-beta4, ==2.0-beta5, ==2.0-beta6, ==2.0-beta7, ==2.0-beta8, ==2.0-beta9, ==2.0-rc1, ==2.0-rc2 GHSA-vp98-w2p3-mv35
View all vulnerabilities for these packages

Timeline

Published
4 years ago
December 14, 2021 at 06:01 PM UTC
Fixed (2.16.0)
Unknown
Unknown
Fixed (2.12.2)
Unknown
Unknown
Fixed (2.3.1)
Unknown
Unknown
Fixed (1.9.2)
Unknown
Unknown
Fixed (1.10.8)
Unknown
Unknown
Fixed (1.11.11)
Unknown
Unknown
Fixed (2.0.12)
Unknown
Unknown
Last Modified
3 hours ago
October 02, 2026 at 08:30 PM UTC