Patchfirst
CVE-2021-4104 Public exploit High · 7.5 EPSS 80.6%

Deserialization of untrusted data in JMSAppender in Apache Log4j 1.2

Apache Software Foundation · Apache Log4j 1.x

Summary

The flaw is a deserialization of untrusted data issue in the JMSAppender component of Apache Log4j 1.x (1.2 line). It affects only deployments that have been specifically configured to use JMSAppender, which is not the default. An attacker who already has write access to the Log4j configuration can supply TopicBindingName and TopicConnectionFactoryBindingName values that cause JMSAppender to make JNDI requests, enabling remote code execution. The attack requires network access, low privileges (write access to the configuration), and a high-complexity condition, with no user interaction needed.

Official description · CVE.org

JMSAppender in Log4j 1.2 is vulnerable to deserialization of untrusted data when the attacker has write access to the Log4j configuration. The attacker can provide TopicBindingName and TopicConnectionFactoryBindingName configurations causing JMSAppender to perform JNDI requests that result in remote code execution in a similar fashion to CVE-2021-44228. Note this issue only affects Log4j 1.2 when specifically configured to use JMSAppender, 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
68.1 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 4 months after disclosure. Public exploit code (PoC-in-GitHub) was available the same day.

  1. DisclosedPublic exploit codePoC-in-GitHubday 0
  2. First seen exploitedVulnCheck KEV evidence+4 mo

See the family tree

A fix was bypassed or incomplete 2 times over 8 months.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. CVE-2021-44228Log4j2 Remote Code Execution10 Dec 2021KEV
  2. relatedHigh

    Why these are linked:

    This CVECVE-2021-4104Deserialization of untrusted data in JMSAppender in Apache Log4j…14 Dec 2021
  3. same family
    CVE-2021-45046Log4j2 Deserialization of Untrusted Data14 Dec 2021KEV
  4. incomplete fixHigh

    Why these are linked:

    • Stated in the CVE textIt was found that the original fix for log4j CVE-2021-44228 and CVE-2021-45046 in the OpenShift metering hive containers was incomplete, as not all JndiLookup.class files were removed.
    CVE-2021-4125It was found that the original fix for log4j CVE-⁠2021-⁠44228 and…24 Aug 2022

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

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-fp5r-v3w9-4333

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

Affected versions

If you runUpgrade to
1.2.0 through 1.2.17No 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

Also mentioned in 18 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

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