Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework.data/spring-data-mongodb
  4. ›
  5. CVE-2022-22980

CVE-2022-22980: SpEL Injection in Spring Data MongoDB

June 23, 2022 (updated June 30, 2022)

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.

References

  • github.com/advisories/GHSA-w24x-87mr-4r23
  • nvd.nist.gov/vuln/detail/CVE-2022-22980
  • tanzu.vmware.com/security/cve-2022-22980

Code Behaviors & Features

Detect and mitigate CVE-2022-22980 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 3.3.4, version 3.4.0

Fixed versions

  • 3.3.5
  • 3.4.1

Solution

Upgrade to versions 3.3.5, 3.4.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')

Source file

maven/org.springframework.data/spring-data-mongodb/CVE-2022-22980.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:18 +0000.