Skip to main content

CVE-2021-22060 — Log entry injection in spring-core — CVE Details

MEDIUM

Log entry injection in Spring Framework

Published January 12, 2022Updated December 4, 2024Source: OSV

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.

Check my pom.xml

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.

Maven
Update org.springframework:spring-core to 5.3.14 or later
<!-- Update pom.xml dependency version to 5.3.14 for org.springframework:spring-core -->
Maven
Update org.springframework:spring-core to 5.2.19 or later
<!-- 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).

PackageFixed 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.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

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

CVSS Score
4.3

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.92%
EPSS percentile: 58.5

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

GHSA-6gf2-pvqw-37ph

Related CVEs

  • CVE-2022-22965
    CRITICAL

    Remote Code Execution in Spring Framework

  • CVE-2025-41232
    CRITICAL

    Spring Security authorization bypass for method security annotations on private methods

  • CVE-2026-47835
    HIGH

    Spring AI vector store metadata filtering to handle special characters in Elasticsearch, OpenSearch, and GemFire Vector Stores

  • CVE-2025-41249
    HIGH

    Spring Framework annotation detection mechanism may result in improper authorization

  • CVE-2026-41712
    HIGH

    Spring AI: ChatMemory DEFAULT_CONVERSATION_ID causes unintended cross-user data leakage

  • CVE-2026-41842
    HIGH

    Spring Framework Denial of Service via Versioned Resources in Spring MVC and WebFlux

  • CVE-2021-22096
    MEDIUM

    Improper Output Neutralization for Logs in Spring Framework

  • CVE-2026-41848
    LOW

    Spring Framework Denial of Service via AntPathMatcher

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml