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?
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=trueDetails
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
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-20861
- Linkgithub.com/spring-projects/spring-framework/commit/430fc25acad2e85cbdddcd52b64481691f03ebd1
- Linkgithub.com/spring-projects/spring-framework/commit/52c93b1c4b24d70de233a958e60e7c5822bd274f
- Linkgithub.com/spring-projects/spring-framework/commit/935c29e3ddba5b19951e54f6685c70ed45d9cbe5
- Packagegithub.com/spring-projects/spring-framework
- Linksecurity.netapp.com/advisory/ntap-20230420-0007
- Linkspring.io/security/cve-2023-20861
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.