GHSA-jfh8-c2jp-5v3q - CRITICAL Vulnerability | GeekWala
Loading...
Skip to main content

GHSA-jfh8-c2jp-5v3q

CRITICAL
Actively Exploited

Remote code injection in Log4j

Published December 10, 2021Updated October 22, 2025Source: osv

Details

# Summary Log4j versions prior to 2.16.0 are subject to a remote code execution vulnerability via the ldap JNDI parser. As per [Apache's Log4j security guide](https://logging.apache.org/log4j/2.x/security.html): Apache Log4j2 <=2.14.1 JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints. An attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers when message lookup substitution is enabled. From log4j 2.16.0, this behavior has been disabled by default. Log4j version 2.15.0 contained an earlier fix for the vulnerability, but that patch did not disable attacker-controlled JNDI lookups in all situations. For more information, see the `Updated advice for version 2.16.0` section of this advisory. # Impact Logging untrusted or user controlled data with a vulnerable version of Log4J may result in Remote Code Execution (RCE) against your application. This includes untrusted data included in logged errors such as exception traces, authentication failures, and other unexpected vectors of user controlled input. # Affected versions Any Log4J version prior to v2.15.0 is affected to this specific issue. The v1 branch of Log4J which is considered End Of Life (EOL) is vulnerable to other RCE vectors so the recommendation is to still update to 2.16.0 where possible. ## Security releases Additional backports of this fix have been made available in versions 2.3.1, 2.12.2, 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. # Remediation Advice ## Updated advice for version 2.16.0 The Apache Logging Services team provided updated mitigation advice upon the release of version 2.16.0, which [disables JNDI by default and completely removes support for message lookups](https://logging.apache.org/log4j/2.x/changes-report.html#a2.16.0). Even in version 2.15.0, lookups used in layouts to provide specific pieces of context information will still recursively resolve, possibly triggering JNDI lookups. This problem is being tracked as [CVE-2021-45046](https://nvd.nist.gov/vuln/detail/CVE-2021-45046). More information is available on the [GitHub Security Advisory for CVE-2021-45046](https://github.com/advisories/GHSA-7rjr-3q55-vv33). Users who want to avoid attacker-controlled JNDI lookups but cannot upgrade to 2.16.0 must [ensure that no such lookups resolve to attacker-provided data and ensure that the the JndiLookup class is not loaded](https://issues.apache.org/jira/browse/LOG4J2-3221). Please note that Log4J v1 is End Of Life (EOL) and will not receive patches for this issue. Log4J v1 is also vulnerable to other RCE vectors and we recommend you migrate to Log4J 2.16.0 where possible.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.logging.log4j:log4j-core to 2.15.0 or later
<!-- Update pom.xml dependency version to 2.15.0 for org.apache.logging.log4j:log4j-core -->
Maven
Update org.apache.logging.log4j:log4j-core to 2.3.1 or later
<!-- Update pom.xml dependency version to 2.3.1 for org.apache.logging.log4j:log4j-core -->
Maven
Update org.ops4j.pax.logging:pax-logging-log4j2 to 1.9.2 or later
<!-- Update pom.xml dependency version to 1.9.2 for org.ops4j.pax.logging:pax-logging-log4j2 -->
Maven
Update org.apache.logging.log4j:log4j-core to 2.12.2 or later
<!-- Update pom.xml dependency version to 2.12.2 for org.apache.logging.log4j:log4j-core -->
Maven
Update org.ops4j.pax.logging:pax-logging-log4j2 to 1.10.8 or later
<!-- Update pom.xml dependency version to 1.10.8 for org.ops4j.pax.logging:pax-logging-log4j2 -->
Maven
Update org.ops4j.pax.logging:pax-logging-log4j2 to 2.0.11 or later
<!-- Update pom.xml dependency version to 2.0.11 for org.ops4j.pax.logging:pax-logging-log4j2 -->
Maven
Update org.ops4j.pax.logging:pax-logging-log4j2 to 1.11.10 or later
<!-- Update pom.xml dependency version to 1.11.10 for org.ops4j.pax.logging:pax-logging-log4j2 -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (10)

PackageEcosystemAffectedFixed In
org.apache.logging.log4j:log4j-core
Maven
2.13.0, 2.13.1, 2.13.2, 2.13.3 (+2 more)2.15.0
com.guicedee.services:log4j-core
Maven
1.0.10.0, 1.0.10.0-jre13, 1.0.10.0-jre14, 1.0.10.1 (+358 more)Range-based data available
uk.co.nichesolutions.logging.log4j:log4j-core
Maven
2.6.3-CUSTOMNo fix available
org.apache.logging.log4j:log4j-core
Maven
2.0, 2.0-beta9, 2.0-rc1, 2.0-rc2 (+5 more)2.3.1
org.ops4j.pax.logging:pax-logging-log4j2
Maven
1.8.0, 1.8.1, 1.8.2, 1.8.3 (+6 more)1.9.2
org.xbib.elasticsearch:log4j
Maven
6.3.2.1No fix available
org.apache.logging.log4j:log4j-core
Maven
2.10.0, 2.11.0, 2.11.1, 2.11.2 (+14 more)2.12.2
org.ops4j.pax.logging:pax-logging-log4j2
Maven
1.10.0, 1.10.1, 1.10.2, 1.10.3 (+4 more)1.10.8
org.ops4j.pax.logging:pax-logging-log4j2
Maven
2.0.0, 2.0.1, 2.0.10, 2.0.2 (+7 more)2.0.11
org.ops4j.pax.logging:pax-logging-log4j2
Maven
1.11.0, 1.11.1, 1.11.2, 1.11.3 (+6 more)1.11.10

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 3.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H

References

Risk Assessment

CVSS Score
3.1

Exploitation is difficult or impact is minor. Address in your next planned update.

EPSS Score (30-day exploit probability)
94.36%
Higher than 100% of vulnerabilities
Known Exploited Vulnerability

This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.

Remediation deadline: December 24, 2021

Also Known As

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies