Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreSpring Data MongoDB contains a SpEL (Spring Expression Language) expression injection vulnerability. The issue occurs during parameter binding when a user-defined repository query method is annotated with @Query and utilizes a capture-all placeholder.
The application is vulnerable if all conditions below are true:
@Query or @Aggregation annotated repository method using a capture all placeholder as in @Query("?0") or @Query(":#{?0}").Spring Data MongoDB:
Users of affected versions should upgrade to the corresponding fixed version.
| Affected version(s) | Fix version | Availability |
|---|---|---|
| 5.0.x | 5.0.6 | OSS |
| 4.5.x | 4.5.12 | OSS |
| 4.4.x | 4.4.15 | Enterprise Support Only |
| 4.3.x | 4.3.17 | Enterprise Support Only |
| 3.4.x | 3.4.20 | Enterprise Support Only |
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy