Known exploited vulnerability
CVE-2021-45046
The short answer
CVE-2021-45046 affects Apache Software Foundation Apache Log4j and is rated critical (CVSS 9.0). CISA added it to the Known Exploited Vulnerabilities catalog on 2023-05-01: attackers are using it, so patch it first. Fixed versions are published for log4j-core (2.16.0, 2.12.2, 2.3.1) and pax-logging-log4j2 (1.9.2, 1.10.8, 1.11.11).
What it is
It was found that the fix to address CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. This could allows attackers with control over Thread Context Map (MDC) input data when the logging configuration uses a non-default Pattern Layout with either a Context Lookup (for example, $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC) to craft malicious input data using a JNDI Lookup pattern resulting in an information leak and remote code execution in some environments and local code execution in all environments. Log4j 2.16.0 (Java 8) and 2.12.2 (Java 7) fix this issue by removing support for message lookup patterns and disabling JNDI functionality by default.
Weakness: CWE-917.
Severity
9.0 critical
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Exploited (CISA KEV)
Yes, since May 1, 2023
Federal due date May 22, 2023
EPSS, next 30 days
100%
Higher than 100% of scored CVEs
How it can be exploited
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
What CISA says to do
Apply updates per vendor instructions.
Affected packages and fixed versions
| Package | Ecosystem | Fixed in | Advisory |
|---|---|---|---|
| org.apache.logging.log4j:log4j-core | Maven | 2.16.0, 2.12.2, 2.3.1 | GHSA-7rjr-3q55-vv33 |
| org.ops4j.pax.logging:pax-logging-log4j2 | Maven | 1.9.2, 1.10.8, 1.11.11, 2.0.12 | GHSA-7rjr-3q55-vv33 |
Is it in your code? Drop your lockfile into the free vulnerability check, or let vulnerability watch check your repository every day and open the upgrade as a pull request.
Affected products
Apache Log4j. NVD's record lists the exact affected versions.
References
- cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf Third Party Advisory
- cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf Third Party Advisory
- cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf Third Party Advisory
- cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM4MEH7MXCY/ Mailing ListRelease Notes
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWYDQXNMUGAJ/ Mailing ListRelease Notes
- logging.apache.org/log4j/2.x/security.html MitigationRelease NotesVendor Advisory
- psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032 Third Party Advisory
- security.gentoo.org/glsa/202310-16 Third Party Advisory
- tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd Third Party Advisory
- www.cve.org/CVERecord?id=CVE-2021-44228 Not Applicable
- www.debian.org/security/2021/dsa-5022 Third Party Advisory
Questions
Is CVE-2021-45046 being exploited?
Yes. CISA added CVE-2021-45046 to its Known Exploited Vulnerabilities catalog on 2023-05-01, with a federal remediation due date of 2023-05-22. CISA lists it as used in ransomware campaigns.
How do I fix CVE-2021-45046?
Upgrade to a fixed version: org.apache.logging.log4j:log4j-core (Maven) 2.16.0 or 2.12.2 or 2.3.1; org.ops4j.pax.logging:pax-logging-log4j2 (Maven) 1.9.2 or 1.10.8 or 1.11.11 or 2.0.12. CISA's required action: Apply updates per vendor instructions.
From NVD, CISA KEV, FIRST EPSS and OSV.dev, checked . Status on NVD: Analyzed. The description is NVD's text, quoted as published.
Related
Latest CVEs this week
Critical and High CVEs from the last 7 days, with KEV and EPSS.
Exploited vulnerabilities by vendor
Every vendor in CISA's KEV catalog, with its count.
Apache exploited vulnerabilities
Everything CISA lists as exploited for Apache.
Vulnerability watch
A briefing and a fix pull request when an advisory hits your dependencies.
Know the day a CVE lands in your code
Connect a GitHub repository and ZeusQA checks its dependencies daily, briefs each advisory and opens the fix. Three test runs free, no card.