CVE-2021-44228Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other…
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.
What to do
This CVE is being exploited in the wild (CISA Known Exploited Vulnerabilities, added 2021-12-10). If you run an affected version, patch or mitigate now.
Fixed builds are available from Debian, Maven, 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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | apache-log4j2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | apache-log4j2 | Fixed | 2.15.0-0.20.04.1 | UBUNTU-CVE-2021-44228 |
| Ubuntu 18.04 | apache-log4j2 | Fixed | 2.10.0-2ubuntu0.1 | UBUNTU-CVE-2021-44228 |
| Ubuntu 16.04 | apache-log4j2 | Fix pending | 2.4-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2021-44228 |
| Debian 14 | apache-log4j2 | Fixed | 2.15.0-1 | DEBIAN-CVE-2021-44228 |
| Debian 13 | apache-log4j2 | Fixed | 2.15.0-1 | DEBIAN-CVE-2021-44228 |
| Debian 12 | apache-log4j2 | Fixed | 2.15.0-1 | DEBIAN-CVE-2021-44228 |
| Red Hat Enterprise Linux 8 | log4j12 | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j12-javadoc | Not affected | ||
| Red Hat Enterprise Linux 7 | log4j | Not affected | ||
| Red Hat Enterprise Linux 7 | log4j-javadoc | Not affected | ||
| Red Hat Enterprise Linux 7 | log4j-manual | Not affected | ||
| Red Hat Enterprise Linux 6 | log4j | Not affected | ||
| Red Hat Enterprise Linux 6 | log4j-javadoc | Not affected | ||
| Red Hat Enterprise Linux 6 | log4j-manual | Not affected | ||
| Maven library | com.guicedee.services:log4j-core | Fix pending | GHSA-jfh8-c2jp-5v3q | |
| Maven library | org.apache.logging.log4j:log4j-core | Fixed | 2.12.2 | GHSA-jfh8-c2jp-5v3q |
| Maven library | org.ops4j.pax.logging:pax-logging-log4j2 | Fixed | 2.0.11 | GHSA-jfh8-c2jp-5v3q |
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.
- Apache Software Foundation Apache Log4j2: affected: 2.0-beta9 to before log4j-core*; fixed in
2.3.1,2.12.2,2.15.0
Vendor advisories:
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log… (vendor-advisory)
- https://www.debian.org/security/2021/dsa-5020 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://msrc-blog.microsoft.com/2021/12/11/microsofts-response-to-cve-2021-44228-apache-l… (vendor-advisory)
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log… (vendor-advisory)
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log… (vendor-advisory)
References
- https://logging.apache.org/log4j/2.x/security.html
- http://www.openwall.com/lists/oss-security/2021/12/10/1
- http://www.openwall.com/lists/oss-security/2021/12/10/2
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd
- http://www.openwall.com/lists/oss-security/2021/12/10/3
- https://security.netapp.com/advisory/ntap-20211210-0007/
- http://packetstormsecurity.com/files/165225/Apache-Log4j2-2.14.1-Remote-Code-Execution.html
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032
- https://www.oracle.com/security-alerts/alert-cve-2021-44228.html
- https://www.debian.org/security/2021/dsa-5020
- https://lists.debian.org/debian-lts-announce/2021/12/msg00007.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VU57UJDCFIASIO35GC55JMKSRXJMCDFM/
- https://msrc-blog.microsoft.com/2021/12/11/microsofts-response-to-cve-2021-44228-apache-log4j2/
- http://www.openwall.com/lists/oss-security/2021/12/13/2
- http://www.openwall.com/lists/oss-security/2021/12/13/1
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.