CVE-2026-41696

Spring Data MongoDB Bind Parameter Literal Quoting Breakout

Published Jun 9, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
Spring Data MongoDB repository query methods annotated with @Query that use regex parameter binding perform insufficient validation of the bound parameter. An attacker can supply a crafted string to break out of the intended regular expression quoting.

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.

Analysis

AI-generated

Technical impact

Spring Data MongoDB repository query methods annotated with @Query that use regex parameter binding perform insufficient validation of the bound parameter. An attacker can supply a crafted string to break out of the intended regular expression quoting, leading to regular-expression injection. This flaw could allow an attacker to retrieve unfiltered data or cause query failures that disrupt application availability. The weakness is identified as CWE-624 and CWE-943.

Affected Systems

The vulnerability affects Spring Data MongoDB versions 3.4.0 through 3.4.19, 4.0.0 through 4.0.15, 4.1.0 through 4.1.14, 4.2.0 through 4.2.15, 4.3.0 through 4.3.16, 4.4.0 through 4.4.14, 4.5.0 through 4.5.11, and 5.0.0 through 5.0.5.

Risk and Exploitability

The CVSS score of 5.9 indicates a medium severity flaw, and the EPSS score is < 1%, indicating limited evidence of widespread exploitation. The vulnerability is not listed in the CISA KEV catalog. Exploitability requires the attacker to supply a crafted regex string to a query that is annotated with @Query; no remote code execution is possible through this vector, but the attack can be performed from any code that can invoke the affected repository methods.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to the latest Spring Data MongoDB release with the fix for regex binding validation
  • Validate or escape regex parameters in @Query annotations to prevent unauthorized characters
  • Verify query behavior in test environments to confirm that regex injection is mitigated

Generated by OpenCVE AI on June 29, 2026 at 13:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-hc43-m36c-8v33 Spring Data MongoDB Has Regex Parameter Binding Injection in @Query Repository Methods
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Spring
Spring spring Data Mongodb
Vmware
Vmware spring Data Mongodb
Vendors & Products Spring
Spring spring Data Mongodb
Vmware
Vmware spring Data Mongodb
Type Values Removed Values Added
Description Spring Data MongoDB repository query methods annotated with @Query that use regex parameter binding perform insufficient validation of the bound parameter. An attacker can supply a crafted string to break out of the intended regular expression quoting. 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.
Title Spring Data MongoDB Bind Parameter Literal Quoting Breakout
Weaknesses CWE-943
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-624

    Executable Regular Expression Error

  • CWE-943

    Improper Neutralization of Special Elements in Data Query Logic

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Jun 10, 2026, 5:53 PM
Reserved
Apr 22, 2026, 6:21 AM
Status
Analyzed
Published
Jun 10, 2026, 12:16 AM
Modified
Jul 23, 2026, 9:10 AM
Severity
Moderate
Public date
Jun 9, 2026, 11:47 PM