Skip to content
Heist/ feed
Back to feed
Unrated

Security advisory

Type: advisorySources: OSVCVE: CVE-2022-22980

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-22980
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 07:47 UTC · Revision 1

Source evidence

CVE-2022-22980

core-osv · Original source

Published 22 Jun 2022, 13:56 UTC

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.

osv:CVE-2022-22980
Complete source record
{
  "id": "5d45d04fa3777ddfb765a73d4ced93de5ecaf526cd787c2266a1d0dce89b9deb",
  "url": "https://osv.dev/vulnerability/CVE-2022-22980",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2022-22980",
    "summary": "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.",
    "evidence": "osv:CVE-2022-22980",
    "products": [],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-22980",
      "aliases": [
        "CVE-2022-22980",
        "GHSA-w24x-87mr-4r23"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/spring-projects/spring-data-mongodb",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "e704f147adfb4abca14fa9c8c58c4f442a1c4084"
                },
                {
                  "introduced": "9cdc79a89a7d2ebfa39596753ff846629f4258b2"
                },
                {
                  "last_affected": "9cdc79a89a7d2ebfa39596753ff846629f4258b2"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_data_mongodb:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.3.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:vmware:spring_data_mongodb:3.4.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.4.0"
                      },
                      {
                        "last_affected": "3.4.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.4.0",
            "3.3.4",
            "3.3.3",
            "3.3.2",
            "3.3.1",
            "3.3.0",
            "3.3.0-RC1",
            "3.3.0-M3",
            "3.3.0-M2",
            "3.3.0-M1",
            "3.2.0",
            "3.2.0-RC1",
            "3.2.0-M5",
            "3.2.0-M4",
            "3.2.0-M3",
            "3.2.0-M2",
            "3.2.0-M1",
            "3.1.0",
            "3.1.0-RC2",
            "3.1.0-RC1",
            "3.1.0-M2",
            "3.1.0-M1",
            "3.0.0.RELEASE",
            "3.0.0.RC2",
            "3.0.0.RC1",
            "3.0.0.M4",
            "3.0.0.M3",
            "3.0.0.M2",
            "3.0.0.M1",
            "2.2.0.RELEASE",
            "2.2.0.RC3",
            "2.2.0.RC2",
            "2.2.0.RC1",
            "2.2.0.M4",
            "2.2.0.M3",
            "2.2.0.M2",
            "2.2.0.M1",
            "2.1.0.RELEASE",
            "2.1.0.RC2",
            "2.1.0.RC1",
            "2.1.0.M3",
            "2.1.0.M2",
            "2.1.0.M1",
            "2.0.0.RELEASE",
            "2.0.0.RC3",
            "2.0.0.RC2",
            "2.0.0.RC1",
            "2.0.0.M4",
            "2.0.0.M3",
            "2.0.0.M2",
            "2.0.0.M1",
            "1.10.0.M1",
            "1.9.0.RELEASE",
            "1.9.0.RC1",
            "1.9.0.M1",
            "1.8.0.RELEASE",
            "1.8.0.RC1",
            "1.8.0.M1",
            "1.7.0.RELEASE",
            "1.7.0.RC1",
            "1.7.0.M1",
            "1.6.0.RELEASE",
            "1.6.0.RC1",
            "1.6.0.M1",
            "1.5.0.RELEASE",
            "1.5.0.RC1",
            "1.5.0.M1",
            "1.4.0.RELEASE",
            "1.4.0.RC1",
            "1.4.0.M1",
            "1.3.0.RELEASE",
            "1.3.0.RC1",
            "1.3.0.M1",
            "1.2.0.RELEASE",
            "1.1.1.RELEASE",
            "1.1.0.RELEASE",
            "1.1.0.RC1",
            "1.1.0.M2",
            "1.1.0.M1",
            "1.0.0.RELEASE",
            "1.0.0.RC1-MongoDB",
            "1.0.0.M5-MongoDB",
            "1.0.0.M4-MongoDB",
            "1.0.0.M3-MongoDB",
            "1.0.0.M2-MongoDB",
            "1.0.0.M1-MongoDB"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-22980.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.819751518Z",
      "provider": "osv",
      "references": [
        "https://tanzu.vmware.com/security/cve-2022-22980",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22980.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-22980"
      ],
      "provider_metadata": {
        "cna_assigner": "vmware",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "3.3.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "VersionTextExtraction"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22980.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-22980",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 493520,
  "published_at": "2022-06-22T13:56:00+00:00"
}