spring-data-mongodb is vulnerable to Improper Neutralization of Special Elements in Data Query Logic
59
CVE Score
Medium
Improper Neutralization of Special Elements in Data Query Logic
Spring Data MongoDB repository query methods annotated with @Query that use regex parameter binding (e.g., @Query("{ name : /^\Q?0\E$/ }")) perform insufficient validation of the bound parameter. An attacker can supply a crafted string to break out of the intended regular expression quoting. When the repository is exposed to untrusted sources (e.g. via spring-data-rest). This can lead to unauthorized data exposure or bypass of intended query filters.
Upgrade the org.springframework.data:spring-data-mongodb library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.0 - 4.5.11
Fixed in 4.5.125.0.0 - 5.0.5
Fixed in 5.0.6spring-data-mongodb is vulnerable to Improper Neutralization of Special Elements in Data Query Logic in versions 0.0.0 - 4.5.11 and 5.0.0 - 5.0.5.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.