Service interruption via unbounded SpEL array allocation
Published Apr 1, 2022 · Updated Aug 3, 2024
Resource exhaustion in Spring Framework before 5.2.20 and 5.3.0 through 5.3.16 allows attackers to interrupt service via crafted SpEL. ConstructorReference.createArray passes expression-supplied array dimensions to Java reflection without limiting total elements, allowing oversized multidimensional arrays to exhaust heap and CPU. An application is exposed only when it evaluates attacker-controlled SpEL; even a read-only SimpleEvaluationContext does not block array construction.
Summary
What happened
Resource exhaustion in Spring Framework before 5.2.20 and 5.3.0 through 5.3.16 allows attackers to interrupt service via crafted SpEL. ConstructorReference.createArray passes expression-supplied array dimensions to Java reflection without limiting total elements, allowing oversized multidimensional arrays to exhaust heap and CPU. An application is exposed only when it evaluates attacker-controlled SpEL; even a read-only SimpleEvaluationContext does not block array construction.
The record
- CVE
- CVE-2022-22950
- Published
- Apr 1, 2022
- Updated
- Aug 3, 2024
- Vendor
- Spring
- Product
- Spring Framework
- Classifications
- CWE-770, T1499.004
- Attack vector
- network
- Privileges
- Unavailable
Timeline
How it unfolded
- Apr 1, 2022CVE publishedPublication date reported by the CVE source.
- Aug 3, 2024Record 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 versions 5.3.X prior to 5.3.17+ and all old and unsupported versions
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
- Large multidimensional array SpEL proof of conceptproof of concept · demonstrated
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