Vulnerability GHSA-8489-44mv-ggj8

Medium Risk
MEDIUM RISK
CVSS Score: 6.6
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
4 years ago
January 04, 2022 at 04:14 PM UTC
Improper Input Validation and Injection in Apache Log4j2
2.1.0 - 2.5.0 and 2.7.0 and 2.9.0 - 2.10.0 and 2.14.0 - 2.17.0
2.1.0 - 2.5.0 and 2.7.0 and 2.9.0 - 2.10.0 and 2.14.0 - 2.17.0

Summary

Improper Input Validation and Injection in Apache Log4j2

Details

Apache Log4j2 versions 2.0-beta7 through 2.17.0 (excluding security fix releases 2.3.2 and 2.12.4) are vulnerable to an attack where an attacker with permission to modify the logging configuration file can construct a malicious configuration using a JDBC Appender with a data source referencing a JNDI URI which can execute remote code. This issue is fixed by limiting JNDI data source names to the java protocol in Log4j2 versions 2.17.1, 2.12.4, and 2.3.2.

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.

This issue does not impact default configurations of Log4j2 and requires an attacker to have control over the Log4j2 configuration, which reduces the likelihood of being exploited.

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
January 04, 2022 at 04:14 PM UTC
Fixed (2.3.2)
Unknown
Unknown
Fixed (2.12.4)
Unknown
Unknown
Fixed (2.17.1)
Unknown
Unknown
Fixed (1.9.2)
Unknown
Unknown
Fixed (1.10.9)
Unknown
Unknown
Fixed (1.11.13)
Unknown
Unknown
Fixed (2.0.14)
Unknown
Unknown
Last Modified
3 months ago
June 09, 2026 at 10:45 AM UTC