cve.bz

CVE-2021-4104 Deserialization of Untrusted Data

7.5 highEPSS 81%

High (7.5). EPSS 81% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
81% (unchanged from 81% a week ago; 81% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2023-12-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-4104 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-4104?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-4104?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-4104 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:log4j1.2
fedoraproject:fedora35
redhat:codeready_studio12.0
redhat:jboss_a-mq6.0.0
redhat:jboss_a-mq7
redhat:jboss_data_grid7.0.0
redhat:jboss_data_virtualization6.0.0
redhat:jboss_enterprise_application_platform6.0.0
redhat:jboss_enterprise_application_platform7.0
redhat:jboss_fuse6.0.0
redhat:jboss_fuse7.0.0
redhat:jboss_fuse_service_works6.0
redhat:jboss_operations_network3.0
redhat:jboss_web_server3.0
redhat:openshift_container_platform4.6
redhat:openshift_container_platform4.7
redhat:openshift_container_platform4.8
redhat:process_automation7.0
redhat:single_sign-on7.0
redhat:enterprise_linux6.0
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
oracle:advanced_supply_chain_planning12.1
oracle:advanced_supply_chain_planning12.2
oracle:business_intelligence5.9.0.0.0
oracle:business_intelligence12.2.1.3.0
oracle:business_intelligence12.2.1.4.0
oracle:business_process_management_suite12.2.1.3.0
oracle:business_process_management_suite12.2.1.4.0
oracle:communications_eagle_ftp_table_base_retrieval4.5
oracle:communications_messaging_server8.1
oracle:communications_network_integrity7.3.6
oracle:communications_offline_mediation_controllerbefore 12.0.0.4.0
oracle:communications_offline_mediation_controller12.0.0.5.0
oracle:communications_unified_inventory_management7.3.4
oracle:communications_unified_inventory_management7.3.5
oracle:communications_unified_inventory_management7.4.1
oracle:communications_unified_inventory_management7.4.2
oracle:e-business_suite_cloud_manager_and_cloud_backup_module2.2.1.1.1
oracle:enterprise_manager_base_platform13.4.0.0
oracle:enterprise_manager_base_platform13.5.0.0
oracle:financial_services_revenue_management_and_billing_analytics2.7.0.0
oracle:financial_services_revenue_management_and_billing_analytics2.7.0.1
oracle:financial_services_revenue_management_and_billing_analytics2.8.0.0
oracle:fusion_middleware_common_libraries_and_tools12.2.1.4.0
oracle:healthcare_data_repository8.1.0
oracle:hyperion_data_relationship_managementbefore 11.2.8.0
oracle:hyperion_infrastructure_technologybefore 11.2.8.0
oracle:identity_management_suite12.2.1.3.0
oracle:identity_management_suite12.2.1.4.0
oracle:jdeveloper12.2.1.3.0
oracle:mysql_enterprise_monitorthrough 8.0.29
oracle:retail_allocation14.1.3.2
oracle:retail_allocation15.0.3.1
oracle:retail_allocation16.0.3
oracle:retail_allocation19.0.1
oracle:retail_extract_transform_and_load13.2.5
oracle:tuxedo12.2.2.0.0
oracle:utilities_testing_accelerator6.0.0.1.1
oracle:utilities_testing_accelerator6.0.0.2.2
oracle:utilities_testing_accelerator6.0.0.3.1
oracle:weblogic_server12.2.1.3.0
oracle:weblogic_server12.2.1.4.0
oracle:weblogic_server14.1.1.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fp5r-v3w9-4333Mavenlog4j:log4j>=1.2.0 <=1.2.17no fix published
GHSA-fp5r-v3w9-4333Mavenorg.zenframework.z8.dependencies.commons:log4j-1.2.17<=2.0no fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9apache-log4j1.21.2.17-7+deb9u2DLA-2905-1
Debian12, 13, 14apache-log4j1.21.2.17-11DEBIAN-CVE-2021-4104
Ubuntu18.04:LTSapache-log4j1.21.2.17-8+deb10u1ubuntu0.1UBUNTU-CVE-2021-4104 USN-5223-1
Ubuntu20.04:LTSapache-log4j1.21.2.17-9ubuntu0.1UBUNTU-CVE-2021-4104 USN-5223-1
UbuntuPro:14.04:LTSapache-log4j1.21.2.17-4ubuntu3+esm1UBUNTU-CVE-2021-4104
UbuntuPro:16.04:LTSapache-log4j1.21.2.17-7ubuntu1+esm1UBUNTU-CVE-2021-4104 USN-5223-2
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstation and 7 morelog4j, log4j-manual, log4j-javadoc0:1.2.17-17.el7_4RHSA-2021:5206
Red Hatenterprise_linux:7::computenodelog4j-manual, log4j-javadoc0:1.2.17-17.el7_4RHSA-2021:5206
Red Hatenterprise_linux:8::appstreamparfait, parfait-javadoc, parfait-examples and 1 more0:0.5.4-4.module+el8.5.0+13988+de2b8c0bRHSA-2022:0290
Red Hatenterprise_linux:8::appstreamsi-units, si-units-javadoc0:0.6.5-2.module+el8+2463+615f6896RHSA-2022:0290
Red Hatenterprise_linux:8::appstreamunit-api, unit-api-javadoc0:1.0-5.module+el8+2463+615f6896RHSA-2022:0290
Red Hatenterprise_linux:8::appstreamuom-lib, uom-lib-javadoc0:1.0.1-6.module+el8+2463+615f6896RHSA-2022:0290
Red Hatenterprise_linux:8::appstreamuom-parent0:1.0.3-3.module+el8+2463+615f6896RHSA-2022:0290
Red Hatenterprise_linux:8::appstreamuom-se, uom-se-javadoc0:1.0.4-3.module+el8+2463+615f6896RHSA-2022:0290
Red Hatenterprise_linux:8::appstreamuom-systems, uom-systems-javadoc0:0.7-1.module+el8+2463+615f6896RHSA-2022:0290
Red Hatjboss_enterprise_application_platform:6::el6jboss-as-ee, jboss-as-cli, jboss-as-cmp and 59 more0:7.5.24-2.Final_redhat_00001.1.ep6.el6RHSA-2022:5459
Red Hatjboss_enterprise_application_platform:6::el6jbossas-javadocs0:7.5.24-1.Final_redhat_00001.1.ep6.el6RHSA-2022:5459
Red Hatjboss_enterprise_application_platform:6::el6jbossts1:4.17.45-2.Final_redhat_2.1.ep6.el6RHSA-2022:5459
65 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morelog4j1.2.17-5.6.1SUSE-SU-2021:4111-1
SUSEHPE Helion OpenStack 8venv-openstack-horizon-hpe12.0.5~dev6-14.40.1SUSE-SU-2021:4190-1
SUSEHPE Helion OpenStack 8venv-openstack-horizon-hpe12.0.5~dev6-14.46.1SUSE-SU-2022:0355-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 morelog4j1.2.15-126.6.1SUSE-SU-2021:4115-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8venv-openstack-aodh5.1.1~dev7-12.34.1SUSE-SU-2021:4190-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8venv-openstack-aodh5.1.1~dev7-12.40.1SUSE-SU-2022:0355-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8venv-openstack-barbican5.0.2~dev3-12.35.1SUSE-SU-2021:4190-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8venv-openstack-barbican5.0.2~dev3-12.41.1SUSE-SU-2022:0355-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8venv-openstack-ceilometer9.0.8~dev7-12.32.1SUSE-SU-2021:4190-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8venv-openstack-ceilometer9.0.8~dev7-12.38.1SUSE-SU-2022:0355-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8venv-openstack-cinder11.2.3~dev29-14.36.1SUSE-SU-2021:4190-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8venv-openstack-cinder11.2.3~dev29-14.42.1SUSE-SU-2022:0355-1
121 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2log4j12, log4j12-mini1.2.17-lp152.3.3.2openSUSE-SU-2021:1612-1
openSUSELeap 15.3kafka, kafka-kit2.1.0-bp153.2.3.1openSUSE-SU-2021:1631-1
openSUSELeap 15.3kafka, kafka-kit2.1.0-bp153.2.6.1openSUSE-SU-2022:0038-1
openSUSELeap 15.3log4j1.2.17-5.6.1openSUSE-SU-2021:4111-1
openSUSELeap 15.3log4j121.2.17-4.3.1openSUSE-SU-2021:4112-1
openSUSETumbleweedkafka-kit2.1.0-2.1openSUSE-SU-2024:11696-1
openSUSETumbleweedlog4j2.16.0-2.1openSUSE-SU-2024:11681-1
AlmaLinux8parfait, parfait-javadoc, parfait-examples and 1 more0.5.4-4.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux8parfait, parfait-javadoc, parfait-examples and 1 more0.5.4-4.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux8si-units, si-units-javadoc0.6.5-2.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux8si-units, si-units-javadoc0.6.5-2.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux8unit-api, unit-api-javadoc1.0-5.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux8unit-api, unit-api-javadoc1.0-5.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux8uom-lib, uom-lib-javadoc1.0.1-6.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux8uom-lib, uom-lib-javadoc1.0.1-6.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux8uom-parent1.0.3-3.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux8uom-parent1.0.3-3.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
AlmaLinux8uom-se, uom-se-javadoc1.0.4-3.module_el8.5.0+235+62ea7738ALSA-2022:0290
AlmaLinux8uom-se, uom-se-javadoc1.0.4-3.module_el8.5.0+2610+de2b8c0bALSA-2022:0290
2 more for AlmaLinux in the JSON.
Rocky Linux8parfait0:0.5.4-4.module+el8.5.0+728+553fbdb8RLSA-2022:0290
Rocky Linux8si-units0:0.6.5-2.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux8unit-api0:1.0-5.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux8uom-lib0:1.0.1-6.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux8uom-parent0:1.0.3-3.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux8uom-se0:1.0.4-3.module+el8.3.0+214+edf13b3fRLSA-2022:0290
Rocky Linux8uom-systems0:0.7-1.module+el8.3.0+214+edf13b3fRLSA-2022:0290

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Based on the conditions to be exploitable (see details below), the risk is much lower than Log4j 2.x and Red Hat has assessed this to be Moderate severity. This flaw has been filed for Log4j 1.x, and the corresponding flaw information for Log4j 2.x is available at: https://access.redhat.com/security/cve/CVE-2021-44228

Note this flaw ONLY affects applications which are specifically configured to use JMSAppender, which is not the default, or when the attacker has write access to the Log4j configuration for adding JMSAppender to the attacker's JNDI LDAP endpoint.

If the Log4j configuration is set TopicBindingName or TopicConnectionFactoryBindingName configurations allowing JMSAppender to perform JNDI requests that result in remote code execution in a similar fashion to CVE-2021-44228 Log4j 2.x, Log4j 1.x is vulnerable. However, the attack vector is reduced as it depends on having write access, which is not a standard configuration rather than untrusted user input. These are sufficient factors beyond the attacker's control.

The tomcat package shipped with Red Hat Enterprise Linux does not include log4j but it does include a default configuration for log4j, log4j.properties, which could be used with tomcat if users choose to install and configure the library. The JMSAppender is not enabled by default, and the permissions of the file can only be modified as root.

Red Hat Virtualization ships log4j12-1.2.17, but it is used and configured in a way which makes this flaw not possible to exploit. Therefore impact is rated Low.

Red Hat's mitigation

These are the possible mitigations for this flaw for releases version 1.x:

- Comment out or remove JMSAppender in the Log4j configuration if it is used

- Remove the JMSAppender class from the classpath. For example:

```

zip -q -d log4j-*.jar org/apache/log4j/net/JMSAppender.class

```

- Restrict access for the OS user on the platform running the application to prevent modifying the Log4j configuration by the attacker.

ProductPackageStateAdvisory
EAP 6.4.24 releaseFixed 2022-06-30RHSA-2022:5458
EAP 6.4 log4j asynclog4jFixed 2022-02-03RHSA-2022:0437
Red Hat Data Grid 7.3.9log4jFixed 2022-02-03RHSA-2022:0430
Red Hat Enterprise Linux 6 Extended Lifecycle Supportlog4j-0:1.2.14-6.5.el6_10Fixed 2021-12-20RHSA-2021:5206
Red Hat Enterprise Linux 7log4j-0:1.2.17-17.el7_4Fixed 2021-12-20RHSA-2021:5206
Red Hat Enterprise Linux 7.3 Advanced Update Supportlog4j-0:1.2.17-16.el7_3Fixed 2021-12-20RHSA-2021:5206
Red Hat Enterprise Linux 7.4 Advanced Update Supportlog4j-0:1.2.17-17.el7_4Fixed 2021-12-20RHSA-2021:5206
Red Hat Enterprise Linux 7.6 Advanced Update Supportlog4j-0:1.2.17-17.el7_4Fixed 2021-12-20RHSA-2021:5206
Red Hat Enterprise Linux 7.6 Telco Extended Update Supportlog4j-0:1.2.17-17.el7_4Fixed 2021-12-20RHSA-2021:5206
Red Hat Enterprise Linux 7.6 Update Services for SAP Solutionslog4j-0:1.2.17-17.el7_4Fixed 2021-12-20RHSA-2021:5206
A-MQ Clients 2log4jAffected
Red Hat AMQ Broker 7log4jAffected
Red Hat build of Quarkuslog4jNot affected
Red Hat Data Grid 8log4jNot affected
Red Hat Decision Manager 7log4jNot affected
Red Hat Enterprise Linux 7tomcatNot affected
Red Hat Integration Camel K 1log4jNot affected
Red Hat Integration Camel Quarkus 1log4jNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packlog4jNot affected
Red Hat JBoss Fuse Service Works 6log4jOut of support scope
198 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-4104.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON