WaratekVRT Sign in

CVE-2022-22980 Spring Data MongoDB

Affected softwareSpring Data MongoDB
Severity9.8 Critical CVSS 3.1 2 scores
Fixed in3.4.1, 3.3.5
WeaknessExpression language injection (CWE-917)
Published23 Jun 2022
Updated17 Jun 2026

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.

Exploitation status

Proof of concept only

A proof of concept exists, but no reviewed exploit catalogue lists this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC 7 indexed Published artifacts you can open, in GitHub PoC; first seen 2022-06-21.
  • EPSS 18% chance in 30 days A model's forecast, not a report of exploitation. Higher than 97% of all scored CVEs.

1 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC Poc of CVE-2022-22980 32 2022-06-21
GitHub PoC CVE-2022-22980环境 14 2022-06-21
GitHub PoC CVE-2022-22980环境 11 2022-06-22
GitHub PoC CVE-2022-22980 exp && 靶场 10 2022-06-22
GitHub PoC spring data mongodb remote code execution | cve-2022-22980 poc 7 2022-07-13
GitHub PoC [CVE-2022-22980] Spring Data MongoDB SpEL Expression Injection 5 2022-06-28
GitHub PoC Exploitation de CVE-2022-22980 1 2026-02-18

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action unverified
  • Review automated Inferred
  • Record active
Decided by The affected package being open source on Maven, so the fix can be read
Finding This CVE affects an open-source Java library published on Maven Central (Maven packages: org.springframework.data:spring-data-mongodb), so it is squarely in ARMR's territory and the source needed to understand the defect is public. That makes it a candidate for an ARMR patch rule. No rule exists and none is scheduled: the diff between the affected and fixed versions has not been read, and a closer look may find no hook point ARMR can act on.

CVSS

9.8 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 2.0 6.8 none AV:N/AC:M/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.springframework.data:spring-data-mongodb 3.4.0 3.4.1 unbounded
org.springframework.data:spring-data-mongodb 0 3.3.5 unbounded

Products and versions

2 products, 4 version entries
SourceVendorProductSchemeAffected versions
osv org.springframework.data spring-data-mongodb generic < 3.3.5 · ≥ 3.4.0 and < 3.4.1
nvd vmware spring data mongodb generic ≤ 3.3.4 · 3.4.0

References

URLTags
https://tanzu.vmware.com/security/cve-2022-22980 WEB

Timeline

Published2022-06-23By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.