Skip to main content

Spring Data MongoDB CVE-2026-41696

| EUVDEUVD-2026-35892 MEDIUM
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-06-10 security@vmware.com GHSA-hc43-m36c-8v33
5.9
CVSS 3.1 · Vendor: vmware
Share

Severity by source

Vendor (vmware) PRIMARY
5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Primary rating from Vendor (vmware) · only source for this CVE.

CVSS VectorVendor: vmware

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
Jun 10, 2026 - 02:01 EUVD
Analysis Generated
Jun 10, 2026 - 00:39 vuln.today

DescriptionCVE.org

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.

AnalysisAI

Regex parameter binding in Spring Data MongoDB's @Query annotation fails to sufficiently quote user-supplied strings, enabling NoSQL injection that can manipulate query semantics. Unauthenticated remote attackers (PR:N, AV:N) who can influence the bound parameter in applications using this pattern may break out of the intended regular expression context to retrieve unintended documents, resulting in high-impact confidentiality compromise. No confirmed active exploitation or public exploit code has been identified at time of analysis; the CVSS Attack Complexity of High reflects a dependency on a specific application-level coding pattern.

Technical ContextAI

Spring Data MongoDB is a Java-based persistence layer in the Spring ecosystem (maintained by VMware/Broadcom) that maps repository method signatures to MongoDB queries. The @Query annotation allows developers to embed MongoDB query templates directly on repository interfaces, with ?0-style placeholder syntax for parameter binding. When a regex operator (e.g., { 'field': { $regex: ?0 } }) is used and a user-supplied value is bound, the framework is expected to quote the value so it is treated as a literal pattern. CWE-943 (Improper Neutralization of Special Elements in Data Query Logic - NoSQL) describes this root cause class: the framework interpolates the parameter into the query structure without fully neutralizing regex metacharacters or operator delimiters, allowing the attacker to alter the query's logical behavior. No CPE strings were supplied in the source data; affected product versions are derived solely from the vendor advisory ranges spanning major branches 3.4.x through 5.0.x.

RemediationAI

Upgrade Spring Data MongoDB to a version beyond the listed affected upper bounds in each branch. The vendor advisory at https://spring.io/security/cve-2026-41696 should be consulted for the exact confirmed fix versions - the source data supplied to this analysis identifies affected ranges but does not explicitly name the first patched release for each branch, so specific fix version numbers cannot be cited here without risk of error. As an immediate compensating control where upgrade is not feasible, developers should audit all repository interfaces using @Query annotations with regex parameter bindings and apply application-level escaping of regex metacharacters before passing values to these methods - for example, wrapping user input with Java's Pattern.quote() prior to binding. Alternatively, refactoring affected queries to use MongoTemplate with an explicit Criteria.where().regex() call allows the application to control quoting explicitly. Removing user-controlled input from @Query regex parameters entirely eliminates the attack surface with no trade-offs. Restricting external access to endpoints that invoke affected repository methods is a partial network-layer mitigation but does not address insider or authenticated-user risk.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Share

CVE-2026-41696 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy