Home / Apache Software Foundation / Apache Log4j2 / CVE-2021-45105
CVE-2021-45105: is it exploited, and which versions of Apache Software Foundation Apache Log4j2 are affected and fixed?
CVE-2021-45105 is an improper input validation vulnerability in Apache Software Foundation Apache Log4j2. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:09 UTC). Affected: org.apache.logging.log4j:log4j-core from 2.4.0 before 2.12.3, org.apache.logging.log4j:log4j-core from 2.13.0 before 2.17.0, org.apache.logging.log4j:log4j-core before 2.3.1 and 4 more (GitHub advisory GHSA-p6xc-xr62-6r2g). Fixed in 2.12.3, 2.17.0, 2.3.1, 1.9.2 and 2 more (GitHub advisory GHSA-p6xc-xr62-6r2g). Severity: Medium (5.9, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:52 UTC.
What is CVE-2021-45105?
Apache Log4j2 does not always protect from infinite recursion in lookup evaluation
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.
From the CVE record by apache, last updated May 29, 2026, 11:45 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache Log4j2 | from log4j-core before 2.17.0 | 2.17.0, 2.12.3, 2.3.1 |
As the CVE record by apache states it, last updated May 29, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.apache.logging.log4j:log4j-core | >= 2.4.0, < 2.12.3 | 2.12.3 | GHSA-p6xc-xr62-6r2g |
| Maven | org.apache.logging.log4j:log4j-core | >= 2.13.0, < 2.17.0 | 2.17.0 | GHSA-p6xc-xr62-6r2g |
| Maven | org.apache.logging.log4j:log4j-core | < 2.3.1 | 2.3.1 | GHSA-p6xc-xr62-6r2g |
| Maven | org.ops4j.pax.logging:pax-logging-log4j2 | >= 1.8.0, < 1.9.2 | 1.9.2 | GHSA-p6xc-xr62-6r2g |
| Maven | org.ops4j.pax.logging:pax-logging-log4j2 | >= 1.10.0, < 1.10.9 | 1.10.9 | GHSA-p6xc-xr62-6r2g |
| Maven | org.ops4j.pax.logging:pax-logging-log4j2 | >= 1.11.0, < 1.11.12 | 1.11.12 | GHSA-p6xc-xr62-6r2g |
| Maven | org.ops4j.pax.logging:pax-logging-log4j2 | >= 2.0.0, < 2.0.13 | 2.0.13 | GHSA-p6xc-xr62-6r2g |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 9, 2026. Summary: Apache Log4j2 vulnerable to Improper Input Validation and Uncontrolled Recursion.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | log4j | from 2.0 before 2.3.1 | application |
| apache | log4j | from 2.4 before 2.12.3 | application |
| apache | log4j | from 2.13.0 through 2.16.0 | application |
| netapp | cloud manager | all versions | application |
| debian | debian linux | 10.0 | operating system |
| debian | debian linux | 11.0 | operating system |
| sonicwall | email security | through 10.0.12 | application |
| sonicwall | network security manager | from 2.0 before 3.0 | application |
| sonicwall | web application firewall | from 3.0.0 before 3.1.0 | application |
| sonicwall | 6bk1602-0aa12-0tp0 firmware | before 2.7.0 | operating system |
| sonicwall | 6bk1602-0aa22-0tp0 firmware | before 2.7.0 | operating system |
| sonicwall | 6bk1602-0aa32-0tp0 firmware | before 2.7.0 | operating system |
| sonicwall | 6bk1602-0aa42-0tp0 firmware | before 2.7.0 | operating system |
| sonicwall | 6bk1602-0aa52-0tp0 firmware | before 2.7.0 | operating system |
| oracle | agile engineering data management | 6.2.1.0 | application |
| oracle | agile plm mcad connector | 3.6 | application |
| oracle | agile product lifecycle management | 9.3.6 | application |
| oracle | autovue for agile product lifecycle management | 21.0.2 | application |
| oracle | banking deposits and lines of credit servicing | 2.12.0 | application |
| oracle | banking enterprise default management | 2.7.1 | application |
| oracle | banking enterprise default management | 2.12.0 | application |
| oracle | banking loans servicing | 2.12.0 | application |
| oracle | banking party management | 2.7.0 | application |
| oracle | banking payments | 14.5 | application |
| oracle | banking platform | 2.6.2 | application |
NVD analysis (status Modified), last modified August 25, 2026, 16:28 UTC.
How severe is CVE-2021-45105?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H | CISA-ADP |
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
| Medium 4.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-45105 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, May 29, 2026)
- EPSS
- 100.0% probability of exploitation activity in the next 30 days, percentile 100.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
Is there a workaround? (from the CVE record)
Implement one of the following mitigation techniques: * Java 8 (or later) users should upgrade to release 2.17.0. Alternatively, this can be mitigated in configuration: * In PatternLayout in the logging configuration, replace Context Lookups like `${ctx:loginId}` or `$${ctx:loginId}` with Thread Context Map patterns (%X, %mdc, or %MDC). * Otherwise, in the configuration, remove references to Context Lookups like `${ctx:loginId}` or `$${ctx:loginId}` where they originate from sources external to the application such as HTTP headers or user input.
Where are the vendor advisories and references?
- https://logging.apache.org/log4j/2.x/security.html x_refsource_MISC
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032 x_refsource_CONFIRM
- VU#930724 third-party-advisory, x_refsource_CERT-VN
- 20211210 Vulnerabilities in Apache Log4j Library Affecting Cisco Products: December 2021 vendor-advisory, x_refsource_CISCO
- [oss-security] 20211218 CVE-2021-45105: Apache Log4j2 does not always protect from infinite recursion in lookup evaluation mailing-list, x_refsource_MLIST
- DSA-5024 vendor-advisory, x_refsource_DEBIAN
- https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf x_refsource_CONFIRM
- https://security.netapp.com/advisory/ntap-20211218-0001/ x_refsource_CONFIRM
- https://www.zerodayinitiative.com/advisories/ZDI-21-1541/ x_refsource_MISC
- https://cert-portal.siemens.com/productcert/pdf/ssa-501673.pdf x_refsource_CONFIRM
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC
Who found and reported it?
- Independently discovered by Hideki Okamoto of Akamai Technologies, Guy Lederfein of Trend Micro Research working with Trend Micro’s Zero Day Initiative, and another anonymous vulnerability researcher (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- December 16, 2021
- Published
- December 18, 2021, 11:55 UTC
- CVE record updated
- May 29, 2026, 11:45 UTC by apache
- NVD
- Modified, last modified August 25, 2026, 16:28 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:52 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache Log4j2?
- Dec 10, 2021CVE-2021-44228 Apache Software Foundation Apache Log4j2: deserialization of untrusted data exploited
- Dec 28, 2021CVE-2021-44832 Apache Software Foundation Apache Log4j2: improper input validation
Questions about CVE-2021-45105
Is CVE-2021-45105 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 100.0% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache Log4j2 are affected by CVE-2021-45105?
org.apache.logging.log4j:log4j-core from 2.4.0 before 2.12.3, org.apache.logging.log4j:log4j-core from 2.13.0 before 2.17.0, org.apache.logging.log4j:log4j-core before 2.3.1, org.ops4j.pax.logging:pax-logging-log4j2 from 1.8.0 before 1.9.2, org.ops4j.pax.logging:pax-logging-log4j2 from 1.10.0 before 1.10.9, org.ops4j.pax.logging:pax-logging-log4j2 from 1.11.0 before 1.11.12 and 1 more, per the GitHub advisory GHSA-p6xc-xr62-6r2g. The tables above give every range the sources list.
Which version fixes CVE-2021-45105?
2.12.3, 2.17.0, 2.3.1, 1.9.2, 1.10.9 and 1.11.12, per the GitHub advisory GHSA-p6xc-xr62-6r2g. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-45105?
Medium (5.9, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2021-45105?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.