CVE-2021-45105 in apache log4j
The LogPulse agent checks every host for the vulnerable version of this software, so you see where the CVE is present.
What the vulnerability is
Apache Log4j2 versions 2.0-alpha1 through 2.16.0 (excluding 2.12.3 and 2.3.1) did not protect from uncontrolled recursion from self-referential lookups. This allows an attacker with control over Thread Context Map data to cause a denial of service when a crafted string is interpreted. This issue was fixed in Log4j 2.17.0, 2.12.3, and 2.3.1.
Affected software: apache log4j, netapp cloud manager, sonicwall email security, sonicwall network security manager, sonicwall web application firewall, oracle agile engineering data management, oracle agile plm mcad connector, oracle agile product lifecycle management, oracle autovue for agile product lifecycle management, oracle banking deposits and lines of credit servicing
Scores
- CVSS: 5.9 (medium)
- EPSS: 100.00% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2021-12-18
What LogPulse has for it
- Detection rule: No
- Agent check (vulnerable version): Yes, published
- Mitigation: Yes, see below
How to mitigate it
Upgrade Apache Log4j 2 to 2.17.1 or later (Log4Shell and follow-up flaws)
Patch or upgrade. Log4j 2.17.1 and later remove message lookups and JNDI by default and restrict the JDBC appender, which closes Log4Shell (CVE-2021-44228), its incomplete fix (CVE-2021-45046), the recursive lookup denial of service (CVE-2021-45105) and the JDBC appender code execution (CVE-2021-44832).
Applies to: Apache Log4j 2.0-beta9 to 2.17.0 (2.12.3 and 2.3.1 on the Java 7 and Java 6 lines).
- Find every application and appliance that ships log4j-core 2.x (agent sensors java-log4j-core-*, a software inventory or a log4j scanner).
- Upgrade log4j-core to 2.17.1 or later (2.12.4 for Java 7, 2.3.2 for Java 6); this closes Log4Shell and the follow-up flaws CVE-2021-45046, CVE-2021-45105 and CVE-2021-44832.
- For vendor products, install the vendor's fixed release.
- Where you cannot upgrade, remove JndiLookup.class from the log4j-core jar as a stopgap (this does not fix CVE-2021-45105 or CVE-2021-44832).
- Rerun the vulnerability scan and confirm these CVEs are no longer reported.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.