Skip to content
OpenAdvisories
Critical · 9.0 Public exploit CVE-2022-22980 EUVD-2022-6169GHSA-w24x-87mr-4r23

SpEL Injection in Spring Data MongoDB

Published Jun 22, 2022 · Updated Aug 3, 2024 · Assigned by vmware

Description

A Spring Data MongoDB application is vulnerable to SpEL Injection when using @Query or @Aggregation-annotated query methods with SpEL expressions that contain query parameter placeholders for value binding if the input is not sanitized.

Affected products

VendorProductAffectedFixed
— Spring Data MongoDB 3.4.0, 3.3.0 to 3.3.4 and Older —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 7 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework.data:spring-data-mongodb >= 3.4.0, < 3.4.1 3.4.1 GHSA-w24x-87mr-4r23
Maven org.springframework.data:spring-data-mongodb < 3.3.5 3.3.5 GHSA-w24x-87mr-4r23

References