Skip to content
Noroxi
CVE-2021-45046· NVD / CVE Program· CNA apache

Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack

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.

CriticalCVSS 9.0 · v3.1KEVWeaponized Fix available
Published
Dec 14, 2021
Updated
Jun 17, 2026
EPSS
100.0% · 100th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

96

Now

Patch today or shut off access.

CVSS
36 / 40 · 9.0 / 10
CISA KEV
30 / 30 · Listed
EPSS
30 / 30 · 100.0%

CISA SSVC decision

Exploitation
active
Automatable
no
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

Actively exploited in the wild

CISA added this to its Known Exploited Vulnerabilities catalog on May 1, 2023. That signals real attacks, not theory.

Remediation deadline for government agencies: May 22, 2023.

Known to be used in ransomware campaigns.

Affected systems

VendorProduct
apachelog4j
cvatcomputer vision annotation tool
intelaudio development kit
inteldatacenter manager
intelgenomics kernel library
inteloneapi
intelsecure device onboard
intelsensor solution firmware development kit
intelsystem debugger
intelsystem studio
siemenssppa-t3000 ses3000 firmware
siemenssppa-t3000 ses3000

and 49 more

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • apache log4j2.0.1 and later · before 2.12.2
  • apache log4j2.13.0 and later · before 2.16.0
  • apache log4j2.0
  • cvat computer vision annotation toolall versions
  • debian debian linux10.0
  • debian debian linux11.0
  • fedoraproject fedora34
  • fedoraproject fedora35
  • intel audio development kitall versions
  • intel datacenter managerall versions
  • intel genomics kernel libraryall versions
  • intel oneapiall versions
  • intel secure device onboardall versions
  • intel sensor solution firmware development kitall versions
  • intel system debuggerall versions
  • intel system studioall versions
  • siemens 6bk1602-0aa12-0tp0 firmwarebefore 2.7.0
  • siemens 6bk1602-0aa22-0tp0 firmwarebefore 2.7.0
  • siemens 6bk1602-0aa32-0tp0 firmwarebefore 2.7.0
  • siemens 6bk1602-0aa42-0tp0 firmwarebefore 2.7.0

Versions reported by the vendor

Affected version ranges reported by the assigning authority (apache). Independent of NVD's CPE analysis and usually ahead of it.

  • Apache Software Foundation Apache Log4j

    • Apache Log4j2 and later · before 2.16.0affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:10apache-log4j2before 2.16.0-1~deb10u12.16.0-1~deb10u1
Debian:11apache-log4j2before 2.16.0-1~deb11u12.16.0-1~deb11u1
Debian:12apache-log4j2before 2.16.0-12.16.0-1
Mavenorg.apache.logging.log4j:log4j-corefrom 2.13.0 · before 2.16.02.16.0
Mavenorg.apache.logging.log4j:log4j-corebefore 2.12.22.12.2
Mavenorg.ops4j.pax.logging:pax-logging-log4j2from 1.10.0 · before 1.10.81.10.8
Mavenorg.ops4j.pax.logging:pax-logging-log4j2from 1.11.0 · before 1.11.111.11.11
Mavenorg.ops4j.pax.logging:pax-logging-log4j2from 1.8.0 · before 1.9.21.9.2
Mavenorg.ops4j.pax.logging:pax-logging-log4j2from 2.0.0 · before 2.0.122.0.12
openSUSE:Leap 15.2disruptorbefore 3.4.4-lp152.2.3.13.4.4-lp152.2.3.1
openSUSE:Leap 15.2jakarta-servletbefore 5.0.0-lp152.2.15.0.0-lp152.2.1
openSUSE:Leap 15.2log4jbefore 2.16.0-lp152.3.9.12.16.0-lp152.3.9.1
openSUSE:Leap 15.3disruptorbefore 3.4.4-3.3.13.4.4-3.3.1
openSUSE:Leap 15.3jakarta-servletbefore 5.0.0-5.3.15.0.0-5.3.1
openSUSE:Leap 15.3log4jbefore 2.13.0-4.6.12.13.0-4.6.1
openSUSE:Leap 15.3log4jbefore 2.16.0-4.10.12.16.0-4.10.1
openSUSE:Tumbleweedlog4jbefore 2.16.0-2.12.16.0-2.1
Red Hat:jboss_enterprise_application_platform_eus:7.1::el7eap7-apache-cxfbefore 0:3.1.16-4.redhat_00003.1.ep7.el70:3.1.16-4.redhat_00003.1.ep7.el7
Red Hat:jboss_enterprise_application_platform_eus:7.1::el7eap7-apache-cxf-rtbefore 0:3.1.16-4.redhat_00003.1.ep7.el70:3.1.16-4.redhat_00003.1.ep7.el7
Red Hat:jboss_enterprise_application_platform_eus:7.1::el7eap7-apache-cxf-servicesbefore 0:3.1.16-4.redhat_00003.1.ep7.el70:3.1.16-4.redhat_00003.1.ep7.el7
Red Hat:jboss_enterprise_application_platform_eus:7.1::el7eap7-apache-cxf-toolsbefore 0:3.1.16-4.redhat_00003.1.ep7.el70:3.1.16-4.redhat_00003.1.ep7.el7
Red Hat:jboss_enterprise_application_platform_eus:7.1::el7eap7-jackson-databindbefore 0:2.8.11.6-2.SP1_redhat_00002.1.ep7.el70:2.8.11.6-2.SP1_redhat_00002.1.ep7.el7
Red Hat:jboss_enterprise_application_platform_eus:7.1::el7eap7-jettisonbefore 0:1.3.8-2.redhat_00002.1.ep7.el70:1.3.8-2.redhat_00002.1.ep7.el7
Red Hat:jboss_enterprise_application_platform_eus:7.1::el7eap7-nettybefore 0:4.1.63-1.Final_redhat_00002.1.ep7.el70:4.1.63-1.Final_redhat_00002.1.ep7.el7

+65

Other highest-scoring records for the same primary product.

  • CVE-2021-44228Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpointsKEV
    100Now
  • CVE-2017-5645In Apache Log4j 2.x before 2.8.2, when using the TCP socket server or UDP socket server to receive serialized log events from another applic
    66This week
  • CVE-2019-17571Included in Log4j 1.2 is a SocketServer class that is vulnerable to deserialization of untrusted data which can be exploited to remotely exe
    60This week
  • CVE-2022-23305SQL injection in JDBC Appender in Apache Log4j V1
    59Plan
  • CVE-2021-44832Apache Log4j2 vulnerable to RCE via JDBC Appender when attacker controls configuration
    55Plan
  • CVE-2022-23302Deserialization of untrusted data in JMSSink in Apache Log4j 1.x
    54Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Debian:apache-log4j22.16.0-1 · Debian:12Package registry (OSV)
Maven:org.apache.logging.log4j:log4j-core2.12.2Package registry (OSV)
Maven:org.apache.logging.log4j:log4j-core2.16.0Package registry (OSV)
Maven:org.ops4j.pax.logging:pax-logging-log4j21.10.8Package registry (OSV)
Maven:org.ops4j.pax.logging:pax-logging-log4j21.11.11Package registry (OSV)
Maven:org.ops4j.pax.logging:pax-logging-log4j21.9.2Package registry (OSV)
Maven:org.ops4j.pax.logging:pax-logging-log4j22.0.12Package registry (OSV)
openSUSE:disruptor3.4.4-lp152.2.3.1 · openSUSE:Leap 15.2Package registry (OSV)
openSUSE:jakarta-servlet5.0.0-lp152.2.1 · openSUSE:Leap 15.2Package registry (OSV)
openSUSE:log4j2.16.0-lp152.3.9.1 · openSUSE:Leap 15.2Package registry (OSV)
Red Hat:eap7-jackson-databind0:2.8.11.6-2.SP1_redhat_00002.1.ep7.el7 · Red Hat:jboss_enterprise_application_platform_eus:7.1::el7Package registry (OSV)
Red Hat:eap7-log4j0:2.17.1-1.redhat_00001.1.el7eap · Red Hat:jboss_enterprise_application_platform:7.4::el7Package registry (OSV)
Red Hat:eap7-resteasy0:3.0.27-1.Final_redhat_00001.1.ep7.el7 · Red Hat:jboss_enterprise_application_platform_eus:7.1::el7Package registry (OSV)
Red Hat:eap7-resteasy-atom-provider0:3.0.27-1.Final_redhat_00001.1.ep7.el7 · Red Hat:jboss_enterprise_application_platform_eus:7.1::el7Package registry (OSV)
Red Hat:eap7-resteasy-cdi0:3.0.27-1.Final_redhat_00001.1.ep7.el7 · Red Hat:jboss_enterprise_application_platform_eus:7.1::el7Package registry (OSV)
Red Hat:eap7-resteasy-client0:3.0.27-1.Final_redhat_00001.1.ep7.el7 · Red Hat:jboss_enterprise_application_platform_eus:7.1::el7Package registry (OSV)
Red Hat:eap7-resteasy-crypto0:3.0.27-1.Final_redhat_00001.1.ep7.el7 · Red Hat:jboss_enterprise_application_platform_eus:7.1::el7Package registry (OSV)
Red Hat:eap7-resteasy-jackson-provider0:3.0.27-1.Final_redhat_00001.1.ep7.el7 · Red Hat:jboss_enterprise_application_platform_eus:7.1::el7Package registry (OSV)
Red Hat:eap7-resteasy-jackson2-provider0:3.0.27-1.Final_redhat_00001.1.ep7.el7 · Red Hat:jboss_enterprise_application_platform_eus:7.1::el7Package registry (OSV)
Red Hat:eap7-resteasy-jaxb-provider0:3.0.27-1.Final_redhat_00001.1.ep7.el7 · Red Hat:jboss_enterprise_application_platform_eus:7.1::el7Package registry (OSV)
Red Hat:eap7-resteasy-jaxrs0:3.0.27-1.Final_redhat_00001.1.ep7.el7 · Red Hat:jboss_enterprise_application_platform_eus:7.1::el7Package registry (OSV)
Red Hat:eap7-resteasy-jettison-provider0:3.0.27-1.Final_redhat_00001.1.ep7.el7 · Red Hat:jboss_enterprise_application_platform_eus:7.1::el7Package registry (OSV)

Exploit status

Weaponized

A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.

Evidence

  • Metasploit module ×1
  • Nuclei detection template ×3
  • Proof-of-concept repository on GitHub ×11

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Metasploit moduleauxiliary/scanner/http/log4shell_scannerLog4Shell HTTP Scannerauxiliary2021-12-09
Nuclei detection templateNuclei template CVE-2021-45046-DAST —
Nuclei detection templateNuclei template CVE-2021-45046 —
Nuclei detection templateNuclei template vrealize-operations-log4j-rce —
Proof-of-concept repository on GitHubstars:222021-12-15
Proof-of-concept repository on GitHubstars:42021-12-15
Proof-of-concept repository on GitHubstars:02021-12-15
Proof-of-concept repository on GitHubstars:02021-12-15
Proof-of-concept repository on GitHubstars:142021-12-16
Proof-of-concept repository on GitHubstars:02021-12-17
Proof-of-concept repository on GitHubstars:12021-12-18
Proof-of-concept repository on GitHubstars:852021-12-20

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Metasploit-6 d
  2. Published
  3. First PoCsame day
  4. CISA KEV+502 d
  5. TodaySep 29, 2026+1750 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • Special conditions such as timing or configuration are required.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted

Impact can extend beyond the vulnerable component (scope changes).

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records