Skip to main content
Public proof of conceptFix available

CVE-2021-45105

A public proof of concept exists; no exploitation attested.

  • Published2021-12-18
  • Fixed in2.17.0 · 2.12.3 · 2.3.1
  • WeaknessCWE-20 · CWE-674

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

Apache Log4j2 versions 2.0-alpha1 through 2.16.0 (excluding 2.12.3 and 2.3.1) did not protect from uncontrolled recursion from self-referential lookups. This allows an attacker with control over Thread Context Map data to cause a denial of service when a crafted string is interpreted. This issue was fixed in Log4j 2.17.0, 2.12.3, and 2.3.1.

Timeline

dates in UTC
  1. 2021-12-1812:15CVE publishedNVD

Versions per branch

OSV · NVD
Apache Log4j
BranchAffectedFixed in
2.x≥ 2.13.0, < 2.17.02.17.0
2.x≥ 2.4, < 2.12.32.12.3
2.x≥ 2.4.0, < 2.12.32.12.3
2.x≥ 2.0, < 2.3.12.3.1
2.3< 2.3.12.3.1
2.x≥ 2.13.0, ≤ 2.16.0no fix published
Oracle retail integration bus
BranchAffectedFixed in
16.0≥ 16.0.1, ≤ 16.0.3no fix published
19.0≥ 19.0.0, ≤ 19.0.1.0no fix published
14.1= 14.1.3no fix published
14.1= 14.1.3.2no fix published
15.0= 15.0.3.1no fix published
19.0= 19.0.0no fix published
19.0= 19.0.1no fix published
Oracle retail service backbone
BranchAffectedFixed in
16.0≥ 16.0.1, ≤ 16.0.3no fix published
14.1= 14.1.3no fix published
14.1= 14.1.3.2no fix published
15.0= 15.0.3.1no fix published
19.0= 19.0.0no fix published
19.0= 19.0.1no fix published
19.0= 19.0.1.0no fix published

114 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Apache Software Foundation Apache Log4j2
    Affected
    • ≥ log4j-core, < 2.17.0fixed in 2.17.0custom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2022-07-25

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • apache-log4j2Ubuntu:Pro:26.04:LTSall versions · fixed in 2.19.0-2ubuntu0.26.04.1~esm1
  • apache-log4j2Ubuntu:Pro:24.04:LTSall versions · fixed in 2.19.0-2ubuntu0.24.04.1~esm1
  • apache-log4j2Ubuntu:Pro:22.04:LTSall versions · fixed in 2.17.1-1ubuntu0.1~esm1
  • apache-log4j2Ubuntu:Pro:20.04:LTSall versions · fixed in 2.17.1-0.20.04.1ubuntu0.1~esm1
  • apache-log4j2Ubuntu:Pro:18.04:LTSall versions · fixed in 2.12.4-0ubuntu0.1+esm1
  • apache-log4j2Ubuntu:Pro:16.04:LTSall versions · fixed in 2.4-2ubuntu0.1~esm2
  • apache-log4j2Ubuntu:26.10all versions · fixed in 2.19.0-2ubuntu0.26.10.1
  • apache-log4j2Ubuntu:20.04:LTSall versions · fixed in 2.17.0-0.20.04.1

25 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-45105 Red Hat Product Security33 products fixed · 4 known affected

    log4j-core: DoS in log4j 2.x with Thread Context Map (MDC) input data contains a recursive lookup and context lookup pattern

    log4j-api as a component of Red Hat Decision Manager 7 · log4j-core as a component of Red Hat Integration Camel Quarkus 1 · openshift3/ose-logging-elasticsearch5 as a component of Red Hat OpenShift Container Platform 3.11 · +1 more

  • RHSA-2022:1463 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat Single Sign-On 7.5.2 security update on RHEL 8

  • RHSA-2022:1462 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat Single Sign-On 7.5.2 security update on RHEL 7

  • RHSA-2022:1469 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Single Sign-On 7.5.2 security update

  • RHSA-2022:1299 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.4 security update

  • RHSA-2022:1297 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.4 security update

15 more advisories

Full record on NVD

Fix

  1. Update Apache Log4j to 2.17.0 · 2.12.3 · 2.3.1
  2. Vendor fix Red Hat Product Security RHSA-2022:1463 · 3 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2022:1469 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. The References section of this erratum contains a download link (you must log in to download the update).
  4. Vendor fix Red Hat Product Security RHSA-2022:1299 · 1 productBefore applying this update, back up your existing Red Hat JBoss Enterprise Application Platform installation and deployed applications. The References section of this erratum contains a download link (you must log in to download the update).
  5. Vendor fix Red Hat Product Security RHSA-2022:1297 · 2 productsBefore applying this update, back up your existing Red Hat JBoss Enterprise Application Platform installation and deployed applications. For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  6. Vendor fix Red Hat Product Security RHSA-2022:0223 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  7. Vendor fix Red Hat Product Security RHSA-2022:0083 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. The References section of this erratum contains a download link for the update. You must be logged in to download the update.

Advisories and patches

Detection

read 2026-11-27 12:13 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2026-05-29
  • CISA-ADPCVSS 3.15.92026-05-29
  • NVDCVSS 3.15.9read 2026-10-23
  • NVDCVSS 2.04.3read 2026-10-23
  • CNAweakness (CWE)CWE-20, CWE-674known since 2026-10-23
  • NVDweakness (CWE)CWE-20, CWE-674read 2026-10-23
  • FIRST EPSSEPSS score99.9 %read 2026-12-04
  • PoC-in-GitHubproof of concept8known since 2026-11-27
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHigh2021-12-18

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2021-12-18
Last modified
2026-08-25
NVD status
Modified
GitHub advisory
GHSA-p6xc-xr62-6r2g

Frequently asked questions

What is CVE-2021-45105?

Apache Log4j2 versions 2.0-alpha1 through 2.16.0 (excluding 2.12.3 and 2.3.1) did not protect from uncontrolled recursion from self-referential lookups. This allows an attacker with control over Thread Context Map data to cause a denial of service when a crafted string is interpreted. This issue was fixed in Log4j 2.17.0, 2.12.3, and 2.3.1.

Is CVE-2021-45105 actively exploited?

Active exploitation of CVE-2021-45105 has not been confirmed. Its EPSS score was 99.9% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-45105?

CVE-2021-45105 has a CVSS v3 base score of 5.9 (Medium severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running Apache Log4j? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record