Spring Data MongoDB - SpEL Expression Injection via Annotated Query Parameter Binding
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-917.
Summary
Spring Data MongoDB contains a SpEL (Spring Expression Language) expression injection vulnerability. The issue occurs during parameter binding when a user-defined repository query method is annotated with @Query and utilizes a capture-all placeholder. Affected versions: Spring Data MongoDB 5.0.0 through 5.0.5; 4.5.0 through 4.5.11; 4.4.0 through 4.4.14; 4.3.0 through 4.3.16; 4.2.0 through 4.2.15; 4.1.0 through 4.1.14; 4.0.0 through 4.0.15; 3.4.0 through 3.4.19.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| VMware | Spring Data MongoDB | 5.0.0 to before 5.0.5.1; 4.5.0 to before 4.5.11.1; 4.4.0 to before 4.4.15; 4.3.0 to before 4.3.17; 4.2.0 to before 4.2.16; 4.1.0 to before 4.1.15; 4.0.0 to before 4.0.16; 3.4.0 to before 3.4.20 | 5.0.5.1, 4.5.11.1, 4.4.15, 4.3.17, 4.2.16, 4.1.15, 4.0.16, 3.4.20 | Patch available | CNA |
| — | org.springframework.data:spring-data-mongodb (Maven) | 5.0.0 to before 5.0.6 | 5.0.6 | Patch available | GHSA-5whc-4q84-fj73 |
| — | org.springframework.data:spring-data-mongodb (Maven) | 4.5.0 to before 4.5.12 | 4.5.12 | Patch available | GHSA-5whc-4q84-fj73 |
| — | org.springframework.data:spring-data-mongodb (Maven) | 4.4.0 – 4.4.14 | — | No fix listed | GHSA-5whc-4q84-fj73 |
| — | org.springframework.data:spring-data-mongodb (Maven) | 4.0.0 – 4.3.16 | — | No fix listed | GHSA-5whc-4q84-fj73 |
| — | org.springframework.data:spring-data-mongodb (Maven) | up to 3.4.19 | — | No fix listed | GHSA-5whc-4q84-fj73 |
- Spring Data MongoDB VendorVMware Affected 5.0.0 to before 5.0.5.1; 4.5.0 to before 4.5.11.1; 4.4.0 to before 4.4.15; 4.3.0 to before 4.3.17; 4.2.0 to before 4.2.16; 4.1.0 to before 4.1.15; 4.0.0 to before 4.0.16; 3.4.0 to before 3.4.20 Fixed in 5.0.5.1, 4.5.11.1, 4.4.15, 4.3.17, 4.2.16, 4.1.15, 4.0.16, 3.4.20 Patch available CNA
- org.springframework.data:spring-data-mongodb (Maven) Vendor— Affected 5.0.0 to before 5.0.6 Fixed in 5.0.6 Patch available GHSA-5whc-4q84-fj73
- org.springframework.data:spring-data-mongodb (Maven) Vendor— Affected 4.5.0 to before 4.5.12 Fixed in 4.5.12 Patch available GHSA-5whc-4q84-fj73
- org.springframework.data:spring-data-mongodb (Maven) Vendor— Affected 4.4.0 – 4.4.14 Fixed in — No fix listed GHSA-5whc-4q84-fj73
- org.springframework.data:spring-data-mongodb (Maven) Vendor— Affected 4.0.0 – 4.3.16 Fixed in — No fix listed GHSA-5whc-4q84-fj73
- org.springframework.data:spring-data-mongodb (Maven) Vendor— Affected up to 3.4.19 Fixed in — No fix listed GHSA-5whc-4q84-fj73
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:vmware:spring_data_mongodb:*:*:*:*:*:*:*:* | 3.4.0 to before 3.4.20; 4.0.0 to before 4.0.16; 4.1.0 to before 4.1.15; 4.2.0 to before 4.2.16; 4.3.0 to before 4.3.17; 4.4.0 to before 4.4.15; 4.5.0 – 4.5.11.1; 5.0.0 to before 5.0.5.1 | Vulnerable | VMware |
- cpe:2.3:a:vmware:spring_data_mongodb:*:*:*:*:*:*:*:* Versions 3.4.0 to before 3.4.20; 4.0.0 to before 4.0.16; 4.1.0 to before 4.1.15; 4.2.0 to before 4.2.16; 4.3.0 to before 4.3.17; 4.4.0 to before 4.4.15; 4.5.0 – 4.5.11.1; 5.0.0 to before 5.0.5.1 Vulnerable ·VMware
Remediation
- Fix · CNA Spring Data MongoDB (Spring) Fixed in 5.0.5.1, 4.5.11.1, 4.4.15, 4.3.17, 4.2.16, 4.1.15, 4.0.16, 3.4.20
- Fix · GHSA-5whc-4q84-fj73 org.springframework.data:spring-data-mongodb (Maven) Fixed in 5.0.6 Advisory →
- Fix · GHSA-5whc-4q84-fj73 org.springframework.data:spring-data-mongodb (Maven) Fixed in 4.5.12 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 1 product
- Red Hat Fuse 7
Timeline
- 2026-10-02 Threatist record created from CVE-2026-41717
- 2026-10-03 Alias added: GHSA-5whc-4q84-fj73
References
More VMware Spring Data Mongodb vulnerabilities
- TI-2022-07156 Expression language injection in Spring Data MongoDB CVSS 3.1CRITICAL 9.8
- TI-2026-30213 Spring Data MongoDB Bind Parameter Literal Quoting Breakout CVSS 3.1MEDIUM 5.9
Sources
- CVE-2026-41717 · CVE Program
- CVE-2026-41717 · NVD
- FIRST EPSS
- GHSA-5whc-4q84-fj73 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-41717 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences