MediumGHSA-564r-hj7v-mcr5CVE-2023-20861

Spring Framework vulnerable to denial of service via specially crafted SpEL expression

Published 23 Mar 2023 · Updated 25 Feb 2025

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

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
>=6.0.0 <6.0.7
Fixed in
6.0.7
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework:spring-expression -DdepVersion=6.0.7 -DforceVersion=true
Affected
>=5.3.0 <5.3.26
Fixed in
5.3.26
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework:spring-expression -DdepVersion=5.3.26 -DforceVersion=true
Affected
<5.2.23.RELEASE
Fixed in
5.2.23.RELEASE
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework:spring-expression -DdepVersion=5.2.23.RELEASE -DforceVersion=true

Details

In Spring Framework versions 6.0.0 - 6.0.6, 5.3.0 - 5.3.25, 5.2.0.RELEASE - 5.2.22.RELEASE, and older unsupported versions, it is possible for a user to provide a specially crafted SpEL expression that may cause a denial-of-service (DoS) condition.

Is GHSA-564r-hj7v-mcr5 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-expression, and gives you the command that fixes it.

More advisories for org.springframework:spring-expression

  • HighCVE-2026-41849Spring Framework Denial of Service via Integer Overflow in SpEL Expressions · 9 Jun 2026
  • HighCVE-2026-41850Spring Framework Algorithmic Denial of Service via SpEL Expressions · 9 Jun 2026
  • MediumCVE-2026-41851Spring Framework Denial of Service via Unbounded Cache in SpEL · 9 Jun 2026
  • LowCVE-2026-41852Spring Framework Arbitrary Method Invocation in SpEL Expressions · 9 Jun 2026
  • MediumCVE-2024-38808Spring Framework vulnerable to Denial of Service · 20 Aug 2024
  • HighCVE-2023-20863Spring Framework vulnerable to denial of service · 13 Apr 2023
All 8 advisories for org.springframework:spring-expression

References

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