CVE-2021-45105: Apache Log4j2 does not always protect from infinite recursion in lookup evaluation
CVE-2021-45105 key facts
- CISA KEV
- Not listed (catalogue checked )
- Highest advisory rating
- Critical
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H· base score 5.9, scored by CISA-ADPAttack vector: network. Attack complexity: high. Privileges required: none. User interaction: none. Scope: unchanged. Confidentiality impact: none. Integrity impact: none. Availability impact: high.- Weakness
- CWE-20 Improper Input Validation
- CWE-674: Uncontrolled Recursion
- EPSS
- 100.0% chance of exploitation in the next 30 days (99th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: no. Technical impact: partial. CISA, .
- Vendor advisories
- 1 from Commvault
- Assigned by
- apache (CNA)
- CVE record published
- Listed by VulniPulse
Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2021-45105; each belongs to its advisory, not to every product listed. How records are collected and checked.
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.
Text from the CVE.org record (apache).
How do I fix CVE-2021-45105?
- Workaround: 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. (CVE.org record)
Vendor advisories for CVE-2021-45105
Commvault
1 advisory- Advisory severityCritical
Critical [CVE-2021-4104 +4] Vulnerability in Apache Log4j Logging Libraries Impacting Commvault Products
CV_2021_12_1Source published
This bulletin covers 5 CVEs. The products, versions, score and guidance below describe the bulletin; check its source for applicability to this specific CVE.
Vulnerability in Apache Log4j Logging Libraries Impacting Commvault Products
- Related products — impact not confirmed
- Commvault
- Source-reported affected versions
- The vulnerability may affect the following Commvault products:Cloud Apps packageOracle agent - Database archiving, data masking, and logical dump backupMicrosoft SQL Server agent - Database archiving, data masking, and table level restoreCommvault File SystemHyperScale X Appliance and Reference Arch
- Source-reported fixed versions
- No fixed-version detail extracted. This does not mean no fix exists.
- Mitigation guidance
- No mitigation guidance extracted; consult the source.
References
- CVE-2021-45105 recordCVE.org
- CVE-2021-45105 detailNVD
- logging.apache.org/log4j/2.x/security.htmlx_refsource_misc
- psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032x_refsource_confirm
- VU#930724third-party-advisory, x_refsource_cert-vn
- 20211210 Vulnerabilities in Apache Log4j Library Affecting Cisco Products: December 2021vendor-advisory, x_refsource_cisco
- [oss-security] 20211218 CVE-2021-45105: Apache Log4j2 does not always protect from infinite recursion in lookup evaluationmailing-list, x_refsource_mlist
- DSA-5024vendor-advisory, x_refsource_debian
- cert-portal.siemens.com/productcert/pdf/ssa-479842.pdfx_refsource_confirm
- security.netapp.com/advisory/ntap-20211218-0001x_refsource_confirm
- zerodayinitiative.com/advisories/ZDI-21-1541x_refsource_misc
- cert-portal.siemens.com/productcert/pdf/ssa-501673.pdfx_refsource_confirm
- oracle.com/security-alerts/cpujan2022.htmlx_refsource_misc
- oracle.com/security-alerts/cpuapr2022.htmlx_refsource_misc
- oracle.com/security-alerts/cpujul2022.htmlx_refsource_misc
Timeline
- CVE record published
- CVE record last updated
- First vendor advisory listed by VulniPulse
More Commvault advisories
CVE-2025-34028May 7, 2025Vulnerability in Commvault Command Center InstallationCV_2026_11_1Nov 25, 2026eMudhra CA Certificate CompromiseCV_2026_10_11Oct 31, 2026Node.js Security UpdateCVE-2026-97333Oct 13, 2026QAPI stack-based buffer overflowCVE-2026-18228Oct 13, 2026HyperScale Path TraversalCVE-2026-77100Oct 13, 2026Media Agent Denial of Service
Get an email when Commvault publishes the next one.
See Commvault's last 90 days first. Live alerts for one product are free for life; every vendor is US$10 a month with Pro (first month US$5).