CVE-2021-4104

Deserialization of untrusted data in JMSAppender in Apache Log4j 1.2

Description

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.

Category

7.5
CVSS
Severity: High
CVSS 3.1 •
CVSS 2.0 •
EPSS 72.95% Top 5%
Vendor Advisory gentoo.org Vendor Advisory gentoo.org Vendor Advisory gentoo.org Vendor Advisory gentoo.org
Affected: Apache Software Foundation Apache Log4j 1.x
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2021-4104?
CVE-2021-4104 has been scored as a high severity vulnerability.
How to fix CVE-2021-4104?
To fix CVE-2021-4104, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2021-4104 being actively exploited in the wild?
It is possible that CVE-2021-4104 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~73% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2021-4104?
CVE-2021-4104 affects Apache Software Foundation Apache Log4j 1.x.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.