Every CVE Search/ Get API key

CVE-2022-22980

SpEL Injection in Spring Data MongoDB

9.8 CriticalPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

17.8%Up 16.4 points since Jun 23, 2022
90%50%10%1%

What each source reports

NVD Score used 9.8

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.

Record
CVE-2022-22980
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-917
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2022-22980
Updated
2026-11-02
EUVDEUVD-2022-6169 No score

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.

Record
EUVD-2022-6169
Updated
2026-11-03
GitHub AdvisoriesGHSA-w24x-87mr-4r23 9.0

SpEL Injection in Spring Data MongoDB

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.

Record
GHSA-w24x-87mr-4r23
CVSS 3.1
9.0 CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-917
Updated
2026-11-02
OSVGHSA-w24x-87mr-4r23 9.0

SpEL Injection in Spring Data MongoDB

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.

Record
GHSA-w24x-87mr-4r23
CVSS 3.1
9.0 CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-917
Updated
2026-11-02
OSV No score

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.

Record
CVE-2022-22980
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.springframework.data:spring-data-mongodb
Maven
3.4.0 to 3.4.0
3.4.1
org.springframework.data:spring-data-mongodb
Maven
before 3.3.5
3.3.5
org.springframework.data:spring-data-mongodb
Maven
3.4.0 up to 3.4.1
3.4.1
org.springframework.data:spring-data-mongodb
Maven
before 3.3.5, plus listed versions
1.0.0.RELEASE1.0.1.RELEASE1.0.2.RELEASE1.0.3.RELEASE1.0.4.RELEASE
Show 45 moreShow less
1.1.0.RELEASE1.1.1.RELEASE1.1.2.RELEASE1.10.0.RELEASE1.10.1.RELEASE1.10.10.RELEASE1.10.11.RELEASE1.10.12.RELEASE1.10.13.RELEASE1.10.14.RELEASE1.10.15.RELEASE1.10.16.RELEASE1.10.17.RELEASE1.10.18.RELEASE1.10.2.RELEASE1.10.20.RELEASE1.10.21.RELEASE1.10.22.RELEASE1.10.23.RELEASE1.10.3.RELEASE1.10.4.RELEASE1.10.5.RELEASE1.10.6.RELEASE1.10.7.RELEASE1.10.8.RELEASE1.10.9.RELEASE1.2.0.RELEASE1.2.1.RELEASE1.2.2.RELEASE1.2.3.RELEASE1.2.4.RELEASE1.3.0.RELEASE1.3.1.RELEASE1.3.2.RELEASE1.3.3.RELEASE1.3.4.RELEASE1.3.5.RELEASE1.4.0.RELEASE1.4.1.RELEASE1.4.2.RELEASE1.4.3.RELEASE1.5.0.RELEASE1.5.1.RELEASE1.5.2.RELEASE1.5.4.RELEASE
3.3.5

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubEliasdekiniweek/CVE-2022-229802026-02-18
PoC in GitHubVulnmachines/Spring_cve-2022-229802022-07-13
PoC in GitHubjweny/cve-2022-229802022-06-22
PoC in GitHubkuron3k0/Spring-Data-Mongodb-Example2022-06-21
PoC in GitHubli8u99/Spring-Data-Mongodb-Demo2022-06-22
PoC in GitHubmurataydemir/CVE-2022-229802022-06-28
PoC in GitHubtrganda/CVE-2022-229802022-06-21

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-22980 is a critical vulnerability (CVSS 9.8) in Vmware Spring Data Mongodb, published June 22, 2022. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 17.8%, the 97th percentile. Fixed in org.springframework.data:spring-data-mongodb 3.4.1.

References

This page doesn't list everything

Left out here: 123 versions. The JSON record has them.

MoveEnter Open