GHSA-jfh8-c2jp-5v3q

Source
https://github.com/advisories/GHSA-jfh8-c2jp-5v3q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-jfh8-c2jp-5v3q/GHSA-jfh8-c2jp-5v3q.json
Aliases
Published
2021-12-10T00:40:56Z
Modified
2024-03-13T05:20:38.494568Z
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: 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. 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. More information is available on the GitHub Security Advisory for CVE-2021-45046.

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.

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.

References

Affected packages

Maven / org.apache.logging.log4j:log4j-core

Package

Name
org.apache.logging.log4j:log4j-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.13.0
Fixed
2.15.0

Affected versions

2.*

2.13.0
2.13.1
2.13.2
2.13.3
2.14.0
2.14.1

Maven / org.apache.logging.log4j:log4j-core

Package

Name
org.apache.logging.log4j:log4j-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0-beta9
Fixed
2.3.1

Affected versions

2.*

2.0-beta9
2.0-rc1
2.0-rc2
2.0
2.0.1
2.0.2
2.1
2.2
2.3

Maven / org.apache.logging.log4j:log4j-core

Package

Name
org.apache.logging.log4j:log4j-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.4
Fixed
2.12.2

Affected versions

2.*

2.4
2.4.1
2.5
2.6
2.6.1
2.6.2
2.7
2.8
2.8.1
2.8.2
2.9.0
2.9.1
2.10.0
2.11.0
2.11.1
2.11.2
2.12.0
2.12.1

Maven / com.guicedee.services:log4j-core

Package

Name
com.guicedee.services:log4j-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0The exact introduced commit is unknown
Last affected
1.2.1.2-jre17

Affected versions

1.*

1.0.2.15
1.0.2.15-jre13
1.0.2.16-jre13
1.0.2.17-jre13
1.0.2.18
1.0.2.18-jre12
1.0.2.18-jre13
1.0.3.1-jre13
1.0.3.2
1.0.3.2-jre13
1.0.3.3
1.0.3.3-jre12
1.0.3.3-jre13
1.0.4.1-jre13
1.0.4.2
1.0.4.2-jre13
1.0.4.3-jre13
1.0.4.4
1.0.4.4-jre13
1.0.5.0
1.0.5.0-jre13
1.0.5.1
1.0.5.1-jre12
1.0.5.1-jre13
1.0.5.2
1.0.5.2-jre12
1.0.5.2-jre13
1.0.5.3
1.0.5.3-jre12
1.0.5.3-jre13
1.0.5.4-jre13
1.0.5.4-jre14
1.0.5.5
1.0.5.5-jre12
1.0.5.5-jre13
1.0.5.5-jre14
1.0.6.1
1.0.6.1-jre12
1.0.6.1-jre13
1.0.6.1-jre14
1.0.6.2
1.0.6.2-jre12
1.0.6.2-jre13
1.0.6.2-jre14
1.0.6.3
1.0.6.3-jre12
1.0.6.3-jre13
1.0.6.3-jre14
1.0.6.4-jre14
1.0.6.5
1.0.6.5-jre12
1.0.6.5-jre13
1.0.6.5-jre14
1.0.6.7
1.0.6.7-jre14
1.0.7.0
1.0.7.0-jre12
1.0.7.0-jre13
1.0.7.0-jre14
1.0.7.1
1.0.7.1-jre13
1.0.7.1-jre14
1.0.7.2-jre14
1.0.7.3
1.0.7.3-jre13
1.0.7.3-jre14
1.0.7.4
1.0.7.4-jre14
1.0.7.5
1.0.7.5-jre14
1.0.7.6
1.0.7.6-jre14
1.0.7.9
1.0.7.9-jre14
1.0.7.10
1.0.7.10-jre13
1.0.7.10-jre14
1.0.7.11
1.0.7.11-jre14
1.0.7.12
1.0.7.12-jre12
1.0.7.12-jre13
1.0.7.12-jre14
1.0.8.1
1.0.8.1-jre14
1.0.8.2
1.0.8.2-jre13
1.0.8.2-jre14
1.0.8.3
1.0.8.3-jre13
1.0.8.3-jre14
1.0.8.4
1.0.8.4-jre12
1.0.8.4-jre13
1.0.8.4-jre14
1.0.8.5
1.0.8.5-jre12
1.0.8.5-jre13
1.0.8.5-jre14
1.0.8.6-jre14
1.0.8.12
1.0.8.12-jre12
1.0.8.12-jre14
1.0.8.16
1.0.8.16-jre14
1.0.8.18
1.0.8.18-jre14
1.0.9.0
1.0.9.0-jre14
1.0.9.1
1.0.9.1-jre14
1.0.9.2
1.0.9.2-jre14
1.0.9.3-jre14
1.0.9.4-jre14
1.0.9.5-jre14
1.0.9.7-jre14
1.0.9.10
1.0.9.10-jre14
1.0.9.11
1.0.9.11-jre14
1.0.9.13
1.0.9.13-jre14
1.0.9.14
1.0.9.14-jre14
1.0.10.0
1.0.10.0-jre13
1.0.10.0-jre14
1.0.10.1
1.0.10.1-jre14
1.0.10.3
1.0.10.3-jre14
1.0.10.4
1.0.10.4-jre12
1.0.10.4-jre13
1.0.10.4-jre14
1.0.11.0-jre14
1.0.11.2-jre14
1.0.11.5
1.0.11.5-jre12
1.0.11.5-jre14
1.0.11.6-jre14
1.0.11.7
1.0.11.7-jre12
1.0.11.7-jre14
1.0.12.0
1.0.12.0-jre8
1.0.12.0-jre12
1.0.12.0-jre13
1.0.12.0-jre14
1.0.12.1
1.0.12.1-jre12
1.0.12.1-jre14
1.0.12.2
1.0.12.2-jre12
1.0.12.2-jre14
1.0.12.3
1.0.12.3-jre12
1.0.12.3-jre13
1.0.12.3-jre14
1.0.12.4
1.0.12.4-jre8
1.0.12.4-jre12
1.0.12.4-jre13
1.0.12.4-jre14
1.0.12.5
1.0.12.5-jre14
1.0.13.0
1.0.13.0-jre8
1.0.13.0-jre12
1.0.13.0-jre13
1.0.13.0-jre14
1.0.13.1
1.0.13.1-jre8
1.0.13.1-jre13
1.0.13.1-jre14
1.0.13.2
1.0.13.2-jre8
1.0.13.2-jre12
1.0.13.2-jre13
1.0.13.2-jre14
1.0.13.3
1.0.13.3-jre14
1.0.13.4
1.0.13.4-jre12
1.0.13.4-jre13
1.0.13.4-jre14
1.0.13.5
1.0.13.5-jre8
1.0.13.5-jre12
1.0.13.5-jre14
1.0.14.0-RC1-jre8
1.0.14.0-RC1-jre14
1.0.14.1
1.0.14.1-jre8
1.0.14.1-jre12
1.0.14.1-jre13
1.0.14.1-jre14
1.0.14.3-jre8
1.0.14.4-jre8
1.0.14.4-jre14
1.0.15.1
1.0.15.1-jre8
1.0.15.1-jre12
1.0.15.1-jre13
1.0.15.1-jre14
1.0.15.2
1.0.15.2-jre8
1.0.15.2-jre12
1.0.15.2-jre14
1.0.15.3-jre8
1.0.15.3-jre14
1.0.15.4
1.0.15.4-jre8
1.0.15.4-jre14
1.0.15.5
1.0.15.5-jre8
1.0.15.5-jre14
1.0.16.0
1.0.16.0-jre8
1.0.16.0-jre14
1.0.17.0
1.0.17.0-jre14
1.0.17.1
1.0.17.1-jre8
1.0.17.1-jre14
1.0.18.0
1.0.18.0-jre8
1.0.18.0-jre14
1.0.18.0-jre15
1.0.18.1
1.0.18.1-jre8
1.0.18.1-jre14
1.0.18.1-jre15
1.0.19.0
1.0.19.0-jre14
1.0.19.0-jre15
1.0.19.1
1.0.19.1-jre8
1.0.19.1-jre12
1.0.19.1-jre13
1.0.19.1-jre14
1.0.19.1-jre15
1.0.19.2
1.0.19.2-jre8
1.0.19.2-jre13
1.0.19.2-jre14
1.0.19.2-jre15
1.0.19.3
1.0.19.3-jre8
1.0.19.3-jre13
1.0.19.3-jre14
1.0.19.3-jre15
1.0.19.4
1.0.19.4-jre8
1.0.19.4-jre14
1.0.19.4-jre15
1.0.19.5
1.0.19.5-jre8
1.0.19.5-jre14
1.0.19.5-jre15
1.0.19.6
1.0.19.6-jre8
1.0.19.6-jre14
1.0.19.7-jre8
1.0.19.7-jre14
1.0.19.8-jre8
1.0.19.9
1.0.19.9-jre8
1.0.19.9-jre13
1.0.19.9-jre14
1.0.19.9-jre15
1.0.19.10
1.0.19.10-jre8
1.0.19.10-jre12
1.0.19.10-jre14
1.0.19.10-jre15
1.0.19.11
1.0.19.11-jre8
1.0.19.11-jre14
1.0.19.12-jre8
1.0.19.12-jre14
1.0.19.13
1.0.19.13-jre8
1.0.19.13-jre14
1.0.19.13-jre15
1.0.20.0
1.0.20.0-jre8
1.0.20.0-jre14
1.0.20.0-jre15
1.0.20.1
1.0.20.1-jre8
1.0.20.1-jre14
1.0.20.1-jre15
1.0.20.2
1.0.20.2-jre8
1.0.20.2-jre14
1.0.20.2-jre15
1.1.0.0-jre15
1.1.0.1
1.1.0.1-jre14
1.1.0.1-jre15
1.1.0.2
1.1.0.2-jre14
1.1.0.2-jre15
1.1.0.3
1.1.0.3-jre8
1.1.0.3-jre14
1.1.0.3-jre15
1.1.0.4-jre8
1.1.0.4-jre14
1.1.0.4-jre15
1.1.0.5-jre14
1.1.0.5-jre15
1.1.0.6
1.1.0.6-jre14
1.1.0.6-jre15
1.1.0.7
1.1.0.7-jre8
1.1.0.7-jre14
1.1.0.7-jre15
1.1.0.8-SNAPSHOT-jre14
1.1.1.0-SNAPSHOT-jre8
1.1.1.0-SNAPSHOT-jre14
1.1.1.0-SNAPSHOT-jre15
1.1.1.0
1.1.1.0-jre8
1.1.1.0-jre14
1.1.1.0-jre15
1.1.1.1-SP1
1.1.1.1-jre14-SP1
1.1.1.1-jre15-SP1
1.1.1.2
1.1.1.2-jre14
1.1.1.2-jre15
1.1.1.3
1.1.1.3-jre8
1.1.1.3-jre14
1.1.1.3-jre15
1.1.1.3-jre16
1.1.1.4
1.1.1.4-jre8
1.1.1.4-jre14
1.1.1.4-jre15
1.1.1.4-jre16
1.1.1.5-jre15
1.1.1.7
1.1.1.7-jre8
1.1.1.7-jre15
1.1.1.7-jre16
1.1.1.8-jre15
1.1.1.8-jre16
1.1.1.9-jre15
1.1.1.9-jre16
1.2.0.0-jre16
1.2.0.1-jre11
1.2.0.1-jre15
1.2.0.1-jre16
1.2.0.2-jre16
1.2.0.3-jre17-rc1
1.2.1.1-jre17
1.2.1.2-jre17

Maven / org.xbib.elasticsearch:log4j

Package

Name
org.xbib.elasticsearch:log4j

Affected ranges

Affected versions

6.*

6.3.2.1

Maven / uk.co.nichesolutions.logging.log4j:log4j-core

Package

Name
uk.co.nichesolutions.logging.log4j:log4j-core

Affected ranges

Affected versions

2.*

2.6.3-CUSTOM