CVE-2021-22060 — Log entry injection in spring-core — CVE Details
Log entry injection in Spring Framework
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.92%). 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-22060 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.13, 5.2.0 - 5.2.18, and older unsupported versions, it is possible for a user to provide malicious input to cause the insertion of additional log entries. This is a follow-up to CVE-2021-22096 that protects against additional types of input and in more places of the Spring Framework codebase.
Advisory Timeline
- First published January 12, 2022 (1779 days ago).
- Last revised December 4, 2024 — 1056 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 5.3.14 for org.springframework:spring-core -->
<!-- Update pom.xml dependency version to 5.2.19 for org.springframework:spring-core -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.springframework:spring-core Maven · Affected: 5.3.0, 5.3.1, 5.3.10, 5.3.11 (+10 more) | 5.3.14 |
| org.springframework:spring-core Maven · Affected: 5.2.0.RELEASE, 5.2.1.RELEASE, 5.2.10.RELEASE, 5.2.11.RELEASE (+15 more) | 5.2.19 |
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-22060?
- Log entry injection 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-22060?
- CVE-2021-22060 affects org.springframework:spring-core. It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-22060 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is an above-median EPSS score — 58.5% 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-2025-41232CRITICAL
Spring Security authorization bypass for method security annotations on private methods
- 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-2026-41842HIGH
Spring Framework Denial of Service via Versioned Resources in Spring MVC and WebFlux
- CVE-2021-22096MEDIUM
Improper Output Neutralization for Logs in Spring Framework
- CVE-2026-41848LOW
Spring Framework Denial of Service via AntPathMatcher