CVE-2021-4104
JSON

7.5high

Deserialization of untrusted data in JMSAppender in Apache Log4j 1.2

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
80.6% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-fp5r-v3w9-4333

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

Product or packageVersionsReported by
Apache Software Foundation Apache Log4j 1.xApache Log4j 1.2 1.2.xCVE List
log4j:log4j (Maven)from 1.2.0 up to 1.2.17GitHub Advisory Database
org.zenframework.z8.dependencies.commons:log4j-1.2.17 (Maven)up to 2.0GitHub Advisory Database
apache log4j1.2NVD
fedoraproject fedora35NVD
redhat codeready_studio12.0NVD
redhat integration_camel_kNot specifiedNVD
redhat integration_camel_quarkusNot specifiedNVD
redhat jboss_a-mq6.0.0, 7NVD
redhat jboss_a-mq_streamingNot specifiedNVD
redhat jboss_data_grid7.0.0NVD
redhat jboss_data_virtualization6.0.0NVD

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.0medium CVSS:2.0AV:N/AC:M/Au:S/C:P/I:P/A:P

Classification

CWE-502

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

JMSAppender en Log4j versión 1.2 es vulnerable a una deserialización de datos no confiables cuando el atacante presenta acceso de escritura a la configuración de Log4j. El atacante puede proporcionar configuraciones TopicBindingName y TopicConnectionFactoryBindingName haciendo que JMSAppender realice peticiones JNDI que resulten en la ejecución de código remota de forma similar a CVE-2021-44228. Tenga en cuenta que este problema sólo afecta a Log4j versión 1.2 cuando es configurado específicamente para usar JMSAppender, que no es el predeterminado. Apache Log4j versión 1.2 llegó al final de su vida útil en agosto de 2015. Los usuarios deberían actualizar a Log4j 2 ya que aborda otros numerosos problemas de las versiones anteriores

References

https://www.cve.org/CVERecord?id=CVE-2021-44228web
https://github.com/apache/logging-log4j2/pull/608#issuecomment-990494126web
https://access.redhat.com/security/cve/CVE-2021-4104web
https://www.kb.cert.org/vuls/id/930724third-party-advisory, web
http://www.openwall.com/lists/oss-security/2022/01/18/3mailing-list, web
https://www.oracle.com/security-alerts/cpujan2022.htmlweb
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0033web
https://security.netapp.com/advisory/ntap-20211223-0007/
https://www.oracle.com/security-alerts/cpuapr2022.htmlweb
https://www.oracle.com/security-alerts/cpujul2022.htmlweb
https://security.gentoo.org/glsa/202209-02vendor-advisory, web
https://security.gentoo.org/glsa/202310-16vendor-advisory, web

Sources

SourceRecordLicence
CVE ListCVE-2021-4104 changed 2026-05-28CVE Terms of Use
GitHub Advisory DatabaseGHSA-fp5r-v3w9-4333 changed 2023-11-08CC-BY-4.0
NVDCVE-2021-4104 changed 2026-06-17Public domain