Patchfirst
CVE-2022-23302 High · 8.8 EPSS 63.8%

Deserialization of untrusted data in JMSSink in Apache Log4j 1.x

Workaround:the vendor lists a workaround. No fixed version in the CVE record. See workaround ↓

Apache Software Foundation · Apache Log4j 1.x

Summary

Apache Log4j 1.x contains a deserialization of untrusted data flaw in its JMSSink component, which is exploitable only when JMSSink is explicitly configured, not by default. An attacker with write access to the Log4j configuration, or with access to an LDAP service the configuration references, can supply a TopicConnectionFactoryBindingName value that causes JMSSink to make JNDI requests leading to remote code execution.

Official description · CVE.org

JMSSink in all versions of Log4j 1.x is vulnerable to deserialization of untrusted data when the attacker has write access to the Log4j configuration or if the configuration references an LDAP service the attacker has access to. The attacker can provide a TopicConnectionFactoryBindingName configuration causing JMSSink to perform JNDI requests that result in remote code execution in a similar fashion to CVE-2021-4104. Note this issue only affects Log4j 1.x when specifically configured to use JMSSink, which is not the default. Apache Log4j 1.2 reached end of life in August 2015. Users should upgrade to Log4j 2 as it addresses numerous other issues from the previous versions.

Breakdown
28.3 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 18 Jan 2022. No public exploit code or confirmed exploitation is recorded.

Affected versions and fixes

as published in the CVE record

Apache Software Foundation Apache Log4j 1.x

Affected: >= 1.0.1, < unspecified · >= unspecified, < 2.0-alpha1

Workaround

Users should upgrade to Log4j 2 or remove usage of the JMSSink from their configurations.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

2 packages in 1 ecosystem. Main package: log4j:log4j.

Mavenlog4j:log4jGHSA-w9p3-5cr8-m3jj

No fixed version published. Check the advisory or remove the package.

Affected versions

If you runUpgrade to
1.2.17 and earlierNo fix published
Other packages that bundle this code (1)

Forks, repackagings and products that include the affected code. Each has its own fixed version.

  • Mavenorg.zenframework.z8.dependencies.commons:log4j-1.2.17
    Affected: 2.0 and earlierNo fixed version published

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

8 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close