CVE-2021-4104
IBM Db2 vulnerability analysis and mitigation

Overview

JMSAppender in Log4j 1.2 is vulnerable to deserialization of untrusted data when the attacker has write access to the Log4j configuration. The vulnerability (CVE-2021-4104) was disclosed in December 2021. The vulnerability affects Log4j 1.2 when specifically configured to use JMSAppender, which is not the default configuration. Apache Log4j 1.2 reached end of life in August 2015 (NVD).

Technical details

The vulnerability allows an attacker with write access to the Log4j configuration to provide TopicBindingName and TopicConnectionFactoryBindingName configurations, causing JMSAppender to perform JNDI requests that can result in remote code execution, similar to CVE-2021-44228. The CVSS v3.1 base score is 7.5 HIGH with vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

A successful exploitation could lead to remote code execution with the privileges of the vulnerable Java application using Log4j. The vulnerability requires write access to the Log4j configuration file and specific configuration of JMSAppender to be exploitable (NVD).

Mitigation and workarounds

Since Log4j 1.x has reached end of life, the primary mitigation is to upgrade to Log4j 2. For systems that cannot be upgraded immediately, the following mitigations are recommended: 1) Do not use JMSAppender in the Log4j configuration, 2) Remove the JMSAppender class file (org/apache/log4j/net/JMSAppender.class), or 3) Limit OS user access to prevent modification of the Log4j configuration (NVD).

Community reactions

The vulnerability received less attention compared to CVE-2021-44228 (Log4Shell) due to its limited scope and specific exploitation requirements. However, it highlighted the importance of upgrading from end-of-life software versions and maintaining secure configurations (Tenable Blog).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management