CVEfocus › CVE database › CVE-2022-23302

CVE-2022-23302Deserialization of untrusted data in JMSSink in Apache Log4j 1.x

CVSS 8.8 HighEPSS 5.6% (higher than 94% of CVEs)Published 2022-01-18Updated 2026-05-27Assigner: apache

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.

CWE-502

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Maven, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

45Fixed
4Fix pending
12Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04apache-log4j1.2Not affected
vulnerable_code_not_present
Ubuntu 22.04apache-log4j1.2Not affected
vulnerable_code_not_present
Ubuntu 20.04apache-log4j1.2Fixed1.2.17-9ubuntu0.2UBUNTU-CVE-2022-23302
Ubuntu 18.04apache-log4j1.2Fixed1.2.17-8+deb10u1ubuntu0.2UBUNTU-CVE-2022-23302
Ubuntu 16.04apache-log4j1.2Fix pending1.2.17-7ubuntu1+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-23302
Ubuntu 14.04apache-log4j1.2Fix pending1.2.17-4ubuntu3+esm2 (Ubuntu Pro)UBUNTU-CVE-2022-23302
Debian 14apache-log4j1.2Fixed1.2.17-11DEBIAN-CVE-2022-23302
Debian 13apache-log4j1.2Fixed1.2.17-11DEBIAN-CVE-2022-23302
Debian 12apache-log4j1.2Fixed1.2.17-11DEBIAN-CVE-2022-23302
Red Hat Enterprise Linux 8parfaitFixed0:0.5.4-4.module+el8.5.0+13988+de2b8c0bRHSA-2022:0290
Red Hat Enterprise Linux 8parfait-examplesFixed0:0.5.4-4.module+el8.5.0+13988+de2b8c0bRHSA-2022:0290
Red Hat Enterprise Linux 8parfait-javadocFixed0:0.5.4-4.module+el8.5.0+13988+de2b8c0bRHSA-2022:0290
Red Hat Enterprise Linux 8pcp-parfait-agentFixed0:0.5.4-4.module+el8.5.0+13988+de2b8c0bRHSA-2022:0290
Red Hat Enterprise Linux 8si-unitsFixed0:0.6.5-2.module+el8+2463+615f6896RHSA-2022:0290
Red Hat Enterprise Linux 8si-units-javadocFixed0:0.6.5-2.module+el8+2463+615f6896RHSA-2022:0290
Red Hat Enterprise Linux 8unit-apiFixed0:1.0-5.module+el8+2463+615f6896RHSA-2022:0290
Red Hat Enterprise Linux 8unit-api-javadocFixed0:1.0-5.module+el8+2463+615f6896RHSA-2022:0290
Red Hat Enterprise Linux 8uom-libFixed0:1.0.1-6.module+el8+2463+615f6896RHSA-2022:0290
Red Hat Enterprise Linux 8uom-lib-javadocFixed0:1.0.1-6.module+el8+2463+615f6896RHSA-2022:0290
Red Hat Enterprise Linux 8uom-parentFixed0:1.0.3-3.module+el8+2463+615f6896RHSA-2022:0290
Red Hat Enterprise Linux 8uom-seFixed0:1.0.4-3.module+el8+2463+615f6896RHSA-2022:0290
Red Hat Enterprise Linux 8uom-se-javadocFixed0:1.0.4-3.module+el8+2463+615f6896RHSA-2022:0290
Red Hat Enterprise Linux 8uom-systemsFixed0:0.7-1.module+el8+2463+615f6896RHSA-2022:0290
Red Hat Enterprise Linux 8uom-systems-javadocFixed0:0.7-1.module+el8+2463+615f6896RHSA-2022:0290
Red Hat Enterprise Linux 7log4jFixed0:1.2.17-18.el7_4RHSA-2022:0442
Red Hat Enterprise Linux 7log4j-javadocFixed0:1.2.17-18.el7_4RHSA-2022:0442
Red Hat Enterprise Linux 7log4j-manualFixed0:1.2.17-18.el7_4RHSA-2022:0442
Red Hat Enterprise Linux 7tomcatNot affected
Red Hat Enterprise Linux 7tomcat-admin-webappsNot affected
Red Hat Enterprise Linux 7tomcat-docs-webappNot affected
Red Hat Enterprise Linux 7tomcat-el-2.2-apiNot affected
Red Hat Enterprise Linux 7tomcat-javadocNot affected
Red Hat Enterprise Linux 7tomcat-jsp-2.2-apiNot affected
Red Hat Enterprise Linux 7tomcat-jsvcNot affected
Red Hat Enterprise Linux 7tomcat-libNot affected
Red Hat Enterprise Linux 7tomcat-servlet-3.0-apiNot affected
Red Hat Enterprise Linux 7tomcat-webappsNot affected
AlmaLinux 8parfaitFixed0.5.4-4.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux 8parfait-examplesFixed0.5.4-4.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux 8parfait-javadocFixed0.5.4-4.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux 8pcp-parfait-agentFixed0.5.4-4.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux 8si-unitsFixed0.6.5-2.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux 8si-units-javadocFixed0.6.5-2.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux 8unit-apiFixed1.0-5.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux 8unit-api-javadocFixed1.0-5.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux 8uom-libFixed1.0.1-6.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux 8uom-lib-javadocFixed1.0.1-6.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux 8uom-parentFixed1.0.3-3.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux 8uom-seFixed1.0.4-3.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux 8uom-se-javadocFixed1.0.4-3.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux 8uom-systemsFixed0.7-1.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux 8uom-systems-javadocFixed0.7-1.module_el8.5.0+235+62ea7738ALSA-2022:0290
Rocky Linux 8parfaitFixed0:0.5.4-4.module+el8.5.0+728+553fbdb8RLSA-2022:0290
Rocky Linux 8si-unitsFixed0:0.6.5-2.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux 8unit-apiFixed0:1.0-5.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux 8uom-libFixed0:1.0.1-6.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux 8uom-parentFixed0:1.0.3-3.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux 8uom-seFixed0:1.0.4-3.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux 8uom-systemsFixed0:0.7-1.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Maven librarylog4j:log4jFix pendingGHSA-w9p3-5cr8-m3jj
Maven libraryorg.zenframework.z8.dependencies.commons:log4j-1.2.17Fix pendingGHSA-w9p3-5cr8-m3jj

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

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

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.