Remote code execution via query placeholder evaluation
Published Jun 22, 2022 · Updated Aug 3, 2024
SpEL injection in Spring Data MongoDB 3.3.4 and earlier and 3.4.0 allows remote attackers to execute arbitrary code. During annotated repository query assembly, ?0-style placeholders inside SpEL are evaluated with unsanitized input instead of retained as bound values. Exploitation requires an @Query or @Aggregation method containing parameterized SpEL and a call with unsanitized user input; successful evaluation grants code execution in the application's security context.
Summary
What happened
SpEL injection in Spring Data MongoDB 3.3.4 and earlier and 3.4.0 allows remote attackers to execute arbitrary code. During annotated repository query assembly, ?0-style placeholders inside SpEL are evaluated with unsanitized input instead of retained as bound values. Exploitation requires an @Query or @Aggregation method containing parameterized SpEL and a call with unsanitized user input; successful evaluation grants code execution in the application's security context.
The record
- CVE
- CVE-2022-22980
- Published
- Jun 22, 2022
- Updated
- Aug 3, 2024
- Vendor
- Spring
- Product
- Spring Data MongoDB
- Classifications
- CWE-917, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 22, 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=3.4.0, 3.3.0 to 3.3.4 and Older
What conditions does exploitation require?
What is affected?
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
- trganda CVE-2022-22980 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