patchminder
Proof of concept · GitHub CVE-2022-22980

Vulnerabilityin the org.springframework.data:spring-data-mongodb package.

Published 22 Jun 2022 · Updated 3 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Critical 9.0
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 17.8% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 3.3.5, 3.4.1
In plain words

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.

What to do now
  • Upgrade org.springframework.data:spring-data-mongodb (Maven) to 3.3.5, 3.4.1 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Spring Data MongoDB
Not confirmed
Not confirmed
CVE record
org.springframework.data:spring-data-mongodb (Maven)
3.4.0 to before 3.4.1
3.4.1
GitHub advisory
org.springframework.data:spring-data-mongodb (Maven)
before 3.3.5
3.3.5
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 10 Jan 2022
    CVE ID reserved by vmware.
  2. 21 Jun 2022
    First public proof of concept on GitHub.
  3. 22 Jun 2022
    Published in the CVE List.
  4. 3 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
7 repositories
GitHubno warning signs foundtrganda/CVE-2022-2298032 stars · created 21 Jun 2022Poc of CVE-2022-22980
GitHubno warning signs foundkuron3k0/Spring-Data-Mongodb-Example14 stars · created 21 Jun 2022CVE-2022-22980环境
GitHubno warning signs foundli8u99/Spring-Data-Mongodb-Demo11 stars · created 22 Jun 2022CVE-2022-22980环境
GitHubno warning signs foundjweny/cve-2022-2298010 stars · created 22 Jun 2022CVE-2022-22980 exp && 靶场
GitHubno warning signs foundVulnmachines/Spring_cve-2022-229807 stars · created 13 Jul 2022spring data mongodb remote code execution | cve-2022-22980 poc
GitHubno warning signs foundmurataydemir/CVE-2022-229805 stars · created 28 Jun 2022[CVE-2022-22980] Spring Data MongoDB SpEL Expression Injection
GitHubno warning signs foundEliasdekiniweek/CVE-2022-229801 stars · created 18 Feb 2026Exploitation de CVE-2022-22980

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vulnerabilities in this package

References
Cite this page

Patchminder. CVE-2022-22980: Vulnerability in the org.springframework.data:spring-data-mongodb package. https://patchminder.com/cve/cve-2022-22980/ (accessed 5 December 2026).