Application denial of service via repeated regex compilation
Published Mar 23, 2023 · Updated Feb 25, 2025
Spring Framework affected releases allow remote attackers to interrupt applications by submitting a crafted SpEL expression. InternalSpelExpressionParser gives each matches node a separate regular-expression cache, so one expression repeatedly compiles the same pattern and exhausts resources. The application must evaluate attacker-controlled SpEL; affected lines are 6.0.0 through 6.0.6, 5.3.0 through 5.3.25, and 5.2.22.RELEASE and earlier.
Summary
What happened
Spring Framework affected releases allow remote attackers to interrupt applications by submitting a crafted SpEL expression. InternalSpelExpressionParser gives each matches node a separate regular-expression cache, so one expression repeatedly compiles the same pattern and exhausts resources. The application must evaluate attacker-controlled SpEL; affected lines are 6.0.0 through 6.0.6, 5.3.0 through 5.3.25, and 5.2.22.RELEASE and earlier.
The record
- CVE
- CVE-2023-20861
- Published
- Mar 23, 2023
- Updated
- Feb 25, 2025
- Vendor
- Spring
- Product
- Spring Framework
- Classifications
- CWE-917, CWE-400, T1499.003
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 23, 2023CVE publishedPublication date reported by the CVE source.
- Feb 25, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=Spring Framework (6.0.0 to 6.0.6, 5.3.0 to 5.3.25, 5.2.0.RELEASE to 5.2.22.RELEASE, Older unsupported versions are also affected)
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo