Stackurity Start free trial

CVEs / CVE-2021-44228

CVE-2021-44228: Apache Log4j2 Remote Code Execution Vulnerability

Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.

Check your servers with Stackurity Already using Stackurity? Search for CVE-2021-44228

Summary

Apache Log4j2 contains a vulnerability where JNDI features do not protect against attacker-controlled JNDI-related endpoints, allowing for remote code execution.

CISA, Known Exploited Vulnerabilities catalog

Description

Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2, 2.12.3, and 2.3.1) JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints. An attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers when message lookup substitution is enabled. From log4j 2.15.0, this behavior has been disabled by default. From version 2.16.0 (along with 2.12.2, 2.12.3, and 2.3.1), this functionality has been completely removed. Note that this vulnerability is specific to log4j-core and does not affect log4net, log4cxx, or other Apache Logging Services projects.

The CVE record, via NVD · published 10 Dec 2021 · NVD status: Analyzed

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
Apache Software Foundation Apache Log4j2from 2.0-beta9, before log4j-core*log4j-core*
As stated by OSV
ProductAffectedFixed in
org.apache.logging.log4j:log4j-core (Maven)from 2.13.0, before 2.15.02.15.0
org.apache.logging.log4j:log4j-core (Maven)from 2.0-beta9, before 2.3.12.3.1
org.apache.logging.log4j:log4j-core (Maven)from 2.4, before 2.12.22.12.2
com.guicedee.services:log4j-core (Maven)up to and including 1.2.1.2-jre17—
org.ops4j.pax.logging:pax-logging-log4j2 (Maven)from 1.8.0, before 1.9.21.9.2
org.ops4j.pax.logging:pax-logging-log4j2 (Maven)from 1.10.0, before 1.10.81.10.8
org.ops4j.pax.logging:pax-logging-log4j2 (Maven)from 1.11.0, before 1.11.101.11.10
org.ops4j.pax.logging:pax-logging-log4j2 (Maven)from 2.0.0, before 2.0.112.0.11

Package versions from GHSA-jfh8-c2jp-5v3q.

Exploitation

In CISA KEV since10 Dec 2021
Due date for US federal agencies24 Dec 2021
Used in ransomware campaignsKnown
Required actionFor all affected software assets for which updates exist, the only acceptable remediation actions are: 1) Apply updates; OR 2) remove affected assets from agency networks. Temporary mitigations using one of the measures provided at https://www.cisa.gov/uscert/ed-22-02-apache-log4j-recommended-mitigation-measures are only acceptable until updates are available.

Severity

CVSS 3.110 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Scored by NVD
WeaknessCWE-20, CWE-400, CWE-502, CWE-917

References

Sources

Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.

This product uses data from the NVD API but is not endorsed or certified by the NVD.