Vulnerability · Published Dec 14, 2021 · Assigned by apache

CVE-2021-4104Deserialization of untrusted data in JMSAppender in Apache Log4j 1.2

High 7.5

In plain English

A high-severity unsafe deserialization in Apache Log4j 1.x from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 80.6% (higher than 99.6% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)80.6%top 0.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8parfait0.5.4-4.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8parfait0.5.4-4.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux:8parfait-examples0.5.4-4.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8parfait-examples0.5.4-4.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux:8parfait-javadoc0.5.4-4.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux:8parfait-javadoc0.5.4-4.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8pcp-parfait-agent0.5.4-4.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8pcp-parfait-agent0.5.4-4.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux:8si-units0.6.5-2.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux:8si-units0.6.5-2.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8si-units-javadoc0.6.5-2.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8si-units-javadoc0.6.5-2.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux:8unit-api1.0-5.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8unit-api1.0-5.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux:8unit-api-javadoc1.0-5.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8unit-api-javadoc1.0-5.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux:8uom-lib1.0.1-6.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8uom-lib1.0.1-6.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux:8uom-lib-javadoc1.0.1-6.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8uom-lib-javadoc1.0.1-6.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux:8uom-parent1.0.3-3.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8uom-parent1.0.3-3.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux:8uom-se1.0.4-3.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux:8uom-se1.0.4-3.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8uom-se-javadoc1.0.4-3.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux:8uom-se-javadoc1.0.4-3.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8uom-systems0.7-1.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux:8uom-systems0.7-1.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8uom-systems-javadoc0.7-1.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux:8uom-systems-javadoc0.7-1.module_el8.5.0+235+62ea7738ALSA-2022:0290
Debian:12apache-log4j1.21.2.17-11DEBIAN-CVE-2021-4104
Debian:13apache-log4j1.21.2.17-11DEBIAN-CVE-2021-4104
Debian:14apache-log4j1.21.2.17-11DEBIAN-CVE-2021-4104
Mavenlog4j:log4jno fix listedGHSA-fp5r-v3w9-4333
Mavenorg.zenframework.z8.dependencies.commons:log4j-1.2.17no fix listedGHSA-fp5r-v3w9-4333
Rocky Linux:8parfait0:0.5.4-4.module+el8.5.0+728+553fbdb8RLSA-2022:0290
Rocky Linux:8si-units0:0.6.5-2.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux:8unit-api0:1.0-5.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux:8uom-lib0:1.0.1-6.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux:8uom-parent0:1.0.3-3.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux:8uom-se0:1.0.4-3.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux:8uom-systems0:0.7-1.module+el8.3.0+214+edf13b3fRLSA-2022:0290

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Log4j 1.x Apache Log4j 1.2 1.2.x

Weakness: CWE-502 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

References