Medium · published September 8, 2026
The $regexFindAll expression can be used by an authenticated user who can run aggregation pipeline stages to crash a MongoDB server (mongod). Under certain specific conditions the regex match can start in the middle of a multi-code-unit character, triggering an assertion during query execution.
| Product | Versions | Fixed in |
|---|---|---|
| mongodb/mongodb | ≥ 7.0.0, < 7.0.41 | 7.0.41 |
| mongodb/mongodb | ≥ 8.0.0, < 8.0.30 | 8.0.30 |
| mongodb/mongodb | ≥ 8.3.0, < 8.3.9 | 8.3.9 |