MongoDB: SpEL in query methods allow code injection
Published Jun 22, 2022
9.8
CRITICALCVSS 3.1
EPSS 17.84%
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.
Affected products
- Vendor n/a Product Spring Data MongoDB Defaultn/a
- Version 3.4.0, 3.3.0 to 3.3.4 and OlderStatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | Spring Data MongoDB | n/a |
|
- ≤ 3.3.4
- 3.4.0
No data.
Red Hat Fuse 7
spring-data-mongodb
Not affected
Red Hat Integration Camel K 1
spring-data-mongodb
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Fuse 7 | spring-data-mongodb | Not affected | n/a |
| Red Hat Integration Camel K 1 | spring-data-mongodb | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (GHSA) ▾
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (30 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 17.84% (0.17836) | 97.09th | v5 (v2026.06.15) |
| Aug 26, 2026 | 17.97% (0.17969) | 96.96th | v5 (v2026.06.15) |
| Jun 19, 2026 | 16.90% (0.16903) | 96.66th | v5 (v2026.06.15) |
| Jun 15, 2026 | 13.93% (0.13925) | 96.06th | v5 (v2026.06.15) |
| Mar 11, 2026 | 83.37% (0.83368) | 99.26th | v4 (v2025.03.14) |
| Feb 26, 2026 | 80.57% (0.80572) | 99.11th | v4 (v2025.03.14) |
| Feb 18, 2026 | 83.37% (0.83368) | 99.25th | v4 (v2025.03.14) |
| Nov 21, 2025 | 86.35% (0.86349) | 99.36th | v4 (v2025.03.14) |
| Nov 18, 2025 | 78.67% (0.78667) | 99.12th | v4 (v2025.03.14) |
| May 3, 2025 | 86.35% (0.86349) | 99.35th | v4 (v2025.03.14) |
| Mar 30, 2025 | 84.78% (0.84784) | 99.29th | v4 (v2025.03.14) |
| Mar 29, 2025 | 86.68% (0.86679) | 99.28th | v4 (v2025.03.14) |
| Mar 28, 2025 | 84.78% (0.84784) | 99.28th | v4 (v2025.03.14) |
| Mar 27, 2025 | 86.68% (0.86679) | 99.37th | v4 (v2025.03.14) |
| Mar 20, 2025 | 84.78% (0.84784) | 99.33th | v4 (v2025.03.14) |
| Mar 19, 2025 | 86.68% (0.86679) | 99.39th | v4 (v2025.03.14) |
| Mar 17, 2025 | 84.78% (0.84784) | 99.30th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.45% (0.00449) | 75.88th | v3 (v2023.03.01) |
| Feb 21, 2024 | 0.45% (0.00449) | 74.37th | v3 (v2023.03.01) |
| Jan 13, 2024 | 0.45% (0.00449) | 72.37th | v3 (v2023.03.01) |
| Dec 3, 2023 | 0.61% (0.00610) | 76.14th | v3 (v2023.03.01) |
| Nov 6, 2023 | 1.04% (0.01040) | 82.35th | v3 (v2023.03.01) |
| Sep 1, 2023 | 1.95% (0.01953) | 87.22th | v3 (v2023.03.01) |
| Jul 25, 2023 | 2.74% (0.02744) | 89.16th | v3 (v2023.03.01) |
| Jun 29, 2023 | 3.76% (0.03760) | 90.53th | v3 (v2023.03.01) |
| May 23, 2023 | 6.45% (0.06453) | 92.60th | v3 (v2023.03.01) |
| Mar 7, 2023 | 7.58% (0.07580) | 93.07th | v3 (v2023.03.01) |
| Mar 6, 2023 | 9.03% (0.09029) | 94.14th | v2 (v2022.01.01) |
| Jul 1, 2022 | 9.03% (0.09029) | 93.75th | v2 (v2022.01.01) |
| Jun 23, 2022 | 1.40% (0.01404) | 70.54th | v2 (v2022.01.01) |
References (6)
- https://access.redhat.com/security/cve/CVE-2022-22980 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2102823 Issue Tracking
- https://github.com/advisories/GHSA-w24x-87mr-4r23 Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-22980
- https://tanzu.vmware.com/security/cve-2022-22980 x_refsource_MISCMitigationVendor Advisory
- https://www.cve.org/CVERecord?id=CVE-2022-22980
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2022-22980 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2102823 | Issue Tracking | |
| https://github.com/advisories/GHSA-w24x-87mr-4r23 | Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-22980 | ||
| https://tanzu.vmware.com/security/cve-2022-22980 | x_refsource_MISCMitigationVendor Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2022-22980 |
Change history (0)
No recorded changes yet.