Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreSpring 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.
Spring Data MongoDB:
| Fix version | Availability |
|---|---|
| 5.0.6 | OSS |
| 5.0.5.1 | Enterprise Support Only |
| 4.5.12 | OSS |
| 4.5.11.1 | Enterprise Support Only |
| 4.4.15 | Enterprise Support Only |
| 4.3.17 | Enterprise Support Only |
| 3.4.20 | Enterprise Support Only |
No further mitigation steps are necessary.
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy