CVE-2021-45046
Also known as: GHSA-7rjr-3q55-vv33
EU Vulnerability Database: EUVD-2021-34769
Description
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.
Severity
CVSS 3.x
9
- Exploitability
- 2.2
- Impact
- 6
- AV:N
- AC:H
- PR:N
- UI:N
- S:C
- C:H
- I:H
- A:H
CVSS 2.0
5.1
- Exploitability
- 4.9
- Impact
- 6.4
- AV:N
- AC:H
- Au:N
- C:P
- I:P
- A:P
Weakness Enumeration
CISA Exploit alert (by Cybersecurity and Infrastructure Security Agency)
Added: 2023-05-01
Required action: Apply updates per vendor instructions.
Change History
Last Modified: Jun 17, 2026
Affected Packages
Maven org.apache.logging.log4j:log4j-core: >= 2.13.0, < 2.16.0
Maven org.apache.logging.log4j:log4j-core: >= 0, < 2.12.2
Maven org.ops4j.pax.logging:pax-logging-log4j2: >= 1.8.0, < 1.9.2
Maven org.ops4j.pax.logging:pax-logging-log4j2: >= 1.10.0, < 1.10.8
Maven org.ops4j.pax.logging:pax-logging-log4j2: >= 1.11.0, < 1.11.11
Maven org.ops4j.pax.logging:pax-logging-log4j2: >= 2.0.0, < 2.0.12
Known Affected Software Configurations
cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:*
cpe:2.3:a:apache:log4j:2.0:-:*:*:*:*:*:*
cpe:2.3:a:apache:log4j:2.0:beta9:*:*:*:*:*:*
cpe:2.3:a:apache:log4j:2.0:rc1:*:*:*:*:*:*
cpe:2.3:a:apache:log4j:2.0:rc2:*:*:*:*:*:*
cpe:2.3:a:cvat:computer_vision_annotation_tool:-:*:*:*:*:*:*:*
cpe:2.3:a:intel:audio_development_kit:-:*:*:*:*:*:*:*
cpe:2.3:a:intel:datacenter_manager:-:*:*:*:*:*:*:*
cpe:2.3:a:intel:genomics_kernel_library:-:*:*:*:*:*:*:*
cpe:2.3:a:intel:oneapi:-:*:*:*:*:eclipse:*:*
References to Advisories, Solutions, and Tools
[security@apache.org] Mailing List, Mitigation, Third Party Advisory
[security@apache.org] Mailing List, Third Party Advisory
[security@apache.org] Mailing List, Third Party Advisory
[security@apache.org] Third Party Advisory
[security@apache.org] Third Party Advisory
[security@apache.org] Third Party Advisory
[security@apache.org] Third Party Advisory
[security@apache.org] Mailing List, Release Notes
[security@apache.org] Mailing List, Release Notes
[security@apache.org] Mitigation, Release Notes, Vendor Advisory