CVE-2021-22096 — Improper Output Neutralization for Logs in...
Improper Output Neutralization for Logs in Spring Framework
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.35%). Schedule for your next planned update.
Does your project use an affected org.springframework:spring-core version?
Paste your pom.xml to check it for CVE-2021-22096 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
In Spring Framework versions 5.3.0 - 5.3.10, 5.2.0 - 5.2.17, and older unsupported versions, it is possible for a user to provide malicious input to cause the insertion of additional log entries.
Advisory Timeline
- First published May 24, 2022 (1647 days ago).
- Last revised July 19, 2024 — 787 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 5.3.11 for org.springframework:spring-core -->
<!-- Update pom.xml dependency version to 5.2.18 for org.springframework:spring -->
<!-- Update pom.xml dependency version to 5.2.18 for org.springframework:spring-core -->
<!-- Update pom.xml dependency version to 5.3.11 for org.springframework:spring -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: Maven (2).
| Package | Fixed In |
|---|---|
| org.springframework:spring-core Maven · Affected: 5.3.0, 5.3.1, 5.3.10, 5.3.2 (+7 more) | 5.3.11 |
| org.springframework:spring Maven · Affected: 5.2.0.RELEASE, 5.2.1.RELEASE, 5.2.10.RELEASE, 5.2.11.RELEASE (+13 more) | 5.2.18 |
| org.springframework:spring-core Maven · Affected: 5.2.0.RELEASE, 5.2.1.RELEASE, 5.2.10.RELEASE, 5.2.11.RELEASE (+14 more) | 5.2.18 |
| org.springframework:spring Maven · Affected: 5.3.0, 5.3.1, 5.3.10, 5.3.2 (+7 more) | 5.3.11 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-117
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 4.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
References
Frequently Asked Questions
- What is CVE-2021-22096?
- Improper Output Neutralization for Logs in Spring Framework. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 4.3/10).
- How do I check if my project is affected by CVE-2021-22096?
- CVE-2021-22096 affects org.springframework:spring-core and org.springframework:spring. It has a 1.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-22096 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is an above-median EPSS score — 71.7% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2022-22965CRITICAL
Remote Code Execution in Spring Framework
- CVE-2023-20860CRITICAL
Spring Framework is vulnerable to security bypass via mvcRequestMatcher pattern mismatch
- CVE-2026-47890CRITICAL
Spring Framework Server Sent Event stream corruption while rendering fragments
- CVE-2026-47835HIGH
Spring AI vector store metadata filtering to handle special characters in Elasticsearch, OpenSearch, and GemFire Vector Stores
- CVE-2025-41249HIGH
Spring Framework annotation detection mechanism may result in improper authorization
- CVE-2026-41712HIGH
Spring AI: ChatMemory DEFAULT_CONVERSATION_ID causes unintended cross-user data leakage
- CVE-2021-22060MEDIUM
Log entry injection in Spring Framework
- CVE-2026-41848LOW
Spring Framework Denial of Service via AntPathMatcher