Heap use-after-free read via yield-time state save in time-series block unpacking
- CVE-2026-120809
- GHSA-3x8p-q9c8-5g87
- EUVD-2026-122900
Description
A use-after-free read issue exists in MongoDB’s SBE (Slot-Based Execution) engine when processing aggregation pipelines with $unwind on time-series collections. An internal error in state-preservation logic can cause a value still referenced by downstream stages to have its underlying memory freed prematurely. An authenticated user can craft an aggregation pipeline under specific conditions to trigger this condition, potentially reading recycled server heap memory in query results or crashing the server. This issue is only triggerable when a non-default server parameter related to the SBE engine is enabled.
Text from the CVE.org record.
Recommendation
MongoDB MongoDB Server
- If you run 9.0.xupdate to 9.0.7 or laterPatch update: breaking changes are unlikely
- If you run 8.3.xupdate to 8.3.16 or laterPatch update: breaking changes are unlikely
- If you run 8.0.xupdate to 8.0.37 or laterPatch update: breaking changes are unlikely
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
MongoDB MongoDB Server
Affected versions Fixed in from 9.0.0 to before 9.0.7 9.0.7 from 8.3.0 to before 8.3.16 8.3.16 from 8.0.0 to before 8.0.37 8.0.37
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.