Read the docs

String query logic injection in Spring Data MongoDB

Priority MEDIUM 44Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
High · None · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA.

Summary

Spring Data MongoDB versions before 3.4.22, from 4.4.0 before 4.4.17, from 4.5.0 before 4.5.15, from 5.0.0 before 5.0.9 and from 5.1.0 before 5.1.3 are affected. The parameter binding for JSON-based queries does not escape String values placed inside quoted string literals, so attacker-controlled input can change query logic. A remote unauthenticated attacker can exploit this when MongoDB server-side JavaScript is enabled and the application passes untrusted String input to a repository method whose @Query or @Aggregation uses a placeholder inside a script expression such as $where. The attacker can access data they should not see.

Written with Claude Haiku 5.5 from the sources below · 2026-12-02

Description from the CNA

Spring Data MongoDB's parameter binding mechanism for JSON-based query and aggregation using placeholder syntax did not contextually escape bound String argument values when those placeholders appeared inside a quoted string literal. The application is vulnerable if all of the following are true: MongoDB server-side JavaScript functions are enabled. The application accepts input parameters from untrusted sources and uses them without prior sanitization as repository query method argument of type String. The repository method is annotated with an MQL query template (e.g. @Query , @Aggregation ) that uses a value placeholder inside a script expression (e.g. $accumulator , $function , $where , ...)

Why it matters now

Fix Fixed Spring Data MongoDB (Spring): 5.1.2.1, 5.0.8.1, 4.5.15 +4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
VMwareSpring Data MongoDB5.1.0 to before 5.1.2.1; 5.0.0 to before 5.0.8.1; 4.5.0 to before 4.5.15; 4.4.0 to before 4.4.17; before 3.4.22; 5.1.0 to before 5.1.3; 5.0.0 to before 5.0.95.1.2.1, 5.0.8.1, 4.5.15, 4.4.17, 3.4.22, 5.1.3, 5.0.9Patch availableCNA
  • Spring Data MongoDB VendorVMware Affected 5.1.0 to before 5.1.2.1; 5.0.0 to before 5.0.8.1; 4.5.0 to before 4.5.15; 4.4.0 to before 4.4.17; before 3.4.22; 5.1.0 to before 5.1.3; 5.0.0 to before 5.0.9 Fixed in 5.1.2.1, 5.0.8.1, 4.5.15, 4.4.17, 3.4.22, 5.1.3, 5.0.9 Patch available CNA

Remediation

Upgrade Spring Data MongoDB to 3.4.22, 4.4.17, 4.5.15, 5.0.8.1, 5.0.9, 5.1.2.1 or 5.1.3, matching the release line in use.

Written with Claude Haiku 5.5 from the sources below · 2026-12-02

  • Fix · CNA Spring Data MongoDB (Spring) Fixed in 5.1.2.1, 5.0.8.1, 4.5.15, 4.4.17, 3.4.22, 5.1.3, 5.0.9

Timeline

  1. 2026-12-02 Threatist record created from CVE-2026-59342
  2. 2026-12-02 Alias added: GHSA-v3m3-42wv-v9hm

References

  • TI-2026-94633 Authentication bypass in VMware vCenter Directory Service KEVCVSS 3.1CRITICAL 9.8
  • TI-2026-42442 Directory traversal in VMware vCenter Syslog server KEVCVSS 3.1CRITICAL 9.8
  • TI-2024-26040 VMware vCenter Server privilege escalation to root via network packet KEVCVSS 3.1CRITICAL 9.8
  • TI-2024-26039 Heap overflow in VMware vCenter Server lets attackers run code KEVCVSS 3.1CRITICAL 9.8
  • TI-2024-24610 Heap overflow in VMware vCenter Server DCERPC implementation KEVCVSS 3.1CRITICAL 9.8
  • TI-2023-16914 Out-of-bounds write in VMware vCenter Server DCERPC implementation KEVCVSS 3.1CRITICAL 9.8
See all 1214 →

Sources