CVE-2021-44228: Apache Log4j2 Remote Code Execution
Apache Log4j2 · listed in the CISA catalog of actively exploited vulnerabilities since 2021-12-10.
- CVSS v3.1 (CVE record)
- 10.0
- critical
- EPSS (exploit probability, 30 days)
- >99.9%
- among the highest 0.1% of all CVEs
- Added to CISA KEV
- 2021-12-10
- US federal due date 2021-12-24
- Ubuntu priority
- high
CVE-2021-44228 explained
CVE-2021-44228 is a remote code execution flaw in Apache Log4j2 (log4j-core). JNDI features in configuration, log messages and parameters do not protect against attacker-controlled LDAP and other JNDI endpoints. It is listed in CISA's Known Exploited Vulnerabilities catalog with known ransomware use, so affected systems need urgent patching.
Impact
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. The attack works over the network, has low complexity, and needs no privileges or user interaction. Scope is changed, and confidentiality, integrity and availability impacts are all high. CISA reports known ransomware use.
Who is affected
The source package apache-log4j2 is affected on Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. All three have fixed versions. Ubuntu 16.04 LTS is end of life, and its fix 2.4-2ubuntu0.1~esm1 is available only through Ubuntu Pro (ESM). Ubuntu 18.04 LTS is fixed in 2.10.0-2ubuntu0.1. Ubuntu 20.04 LTS is fixed in 2.15.0-0.20.04.1. Both of those fixes are in the standard archive.
Written with AI from the data on this page and checked against it automatically.
Official 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.
CISA required action: For 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 cisa.gov/uscert/ed-22-02-apache-log4j-recommended-mitigat… are only acceptable until updates are available.
CISA notes
Upstream versions (CVE record)
From the CVE record published by the vendor or CVE numbering authority.
- Apache Software Foundation Apache Log4j2AffectedFixed in
- ≥ 2.0-beta9, < 2.3.1
- ≥ 2.4, < 2.12.2
- ≥ 2.13.0, < 2.15.0
- 2.3.1
- 2.12.2
- 2.15.0
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache Log4j2 |
|
|
Ubuntu and Debian releases
A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.
Ubuntu 20.04 LTS·apache-log4j2
Fixed: 2.15.0-0.20.04.1
Ubuntu 18.04 LTS·apache-log4j2
Fixed: 2.10.0-2ubuntu0.1
Ubuntu 16.04 LTS·apache-log4j2
fix via Ubuntu Pro
Fixed: 2.4-2ubuntu0.1~esm1
What to do
- Identify systems that have the
apache-log4j2package installed. - Update
apache-log4j2to the fixed version for your release. - On Ubuntu 16.04 LTS, enable Ubuntu Pro (ESM) to get
2.4-2ubuntu0.1~esm1, and plan an upgrade to a supported release. - Restart all Java services that use Log4j2 so they load the updated library.
- Limit network exposure of affected services until the update is applied.
- Follow the Ubuntu security advisory for this CVE.
Written with AI from the data on this page and checked against it automatically.
Check and fix on a server
Run on each Ubuntu or Debian server. Replace apache-log4j2 with the source package from the table above.
1. Show installed packages built from the source package, with their versions
dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="apache-log4j2"'2. Compare each installed version with the fixed version for your release from the table
I=INSTALLED_VERSION; F=FIXED_VERSION # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac3. Install the fix
sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="apache-log4j2"{print $1}')Services keep running the old code until they are restarted – restart the affected service or check with needrestart.
Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- Yes – attackers can automate it at scale
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-502 Deserialization of Untrusted Data, CWE-400 Uncontrolled Resource Consumption, CWE-20 Improper Input Validation
Questions about CVE-2021-44228
- Is this vulnerability actively exploited?
- Yes. CISA added CVE-2021-44228 to its Known Exploited Vulnerabilities catalog on 2021-12-10 and reports known ransomware use.
- Do I need to restart anything after updating?
- Yes. Running Java services keep using the old Log4j2 code until they are restarted. Restart every service that uses the library after you update the package.
- Are log4net or log4cxx affected?
- No. The description says the vulnerability is specific to log4j-core and does not affect log4net, log4cxx or other Apache Logging Services projects.
Written with AI from the data on this page and checked against it automatically.
References
Other advisories
Trackers and catalogs
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.