MediumGHSA-vpr3-f594-mg5gCVE-2010-1622

Improper Control of Generation of Code ('Code Injection') in Spring Framework

Published 17 May 2022 · Updated 3 Dec 2024

Is your project on an affected org.springframework:spring?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=2.5.0 <2.5.7
Fixed in
2.5.7
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework:spring -DdepVersion=2.5.7 -DforceVersion=true
Affected
>=3.0.0 <3.0.3
Fixed in
3.0.3
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework:spring -DdepVersion=3.0.3 -DforceVersion=true

Details

SpringSource Spring Framework 2.5.x before 2.5.6.SEC02, 2.5.7 before 2.5.7.SR01, and 3.0.x before 3.0.3 allows remote attackers to execute arbitrary code via an HTTP request containing class.classLoader.URLs[0]=jar: followed by a URL of a crafted .jar file.

Is GHSA-vpr3-f594-mg5g in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.springframework:spring, and gives you the command that fixes it.

More advisories for org.springframework:spring

  • CriticalCVE-2023-20860Spring Framework is vulnerable to security bypass via mvcRequestMatcher pattern mismatch · 28 Mar 2023
  • MediumCVE-2021-22096Improper Output Neutralization for Logs in Spring Framework · 24 May 2022
org.springframework:spring security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.