Skip to main content

CVE-2021-22096 — Improper Output Neutralization for Logs in...

MEDIUM

Improper Output Neutralization for Logs in Spring Framework

Published May 24, 2022Updated July 19, 2024Source: OSV

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.

Check my pom.xml

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.

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

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

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

CVSS Score
4.3

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
1.35%
EPSS percentile: 71.7

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

GHSA-rfmp-97jj-h8m6

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml