CVE-2026-96297 MongoDB Server may disclose process memory via a crafted `$_internalApplyOplogUpdate` aggregation pipeline
An authenticated user can trigger a use-after-free in MongoDB Server to read unrelated process memory or cause a crash via crafted aggregation pipelines.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-96297?
CVE-2026-96297 is a medium-severity use after free vulnerability in MongoDB Server, published on 13 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Use of freed memory in the aggregation feature of MongoDB Server can cause the server to read data from a memory area after it has been released. When an internal aggregation stage is combined with a batch size of 0, the server may read from memory that is no longer in use. Because that memory can be reused for other data before it is read, query results returned to the client may contain unrelated data from the server process. Depending on the state of memory at the time, the server process may also terminate unexpectedly. The behavior can occur when an authenticated user with read privileges runs an aggregate command that combines these two settings.
Weakness: CWE-416
Which versions are affected by CVE-2026-96297?
How do I fix CVE-2026-96297?
No fix has been published for CVE-2026-96297 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2026-96297 being exploited?
There is no known exploitation of CVE-2026-96297 in the wild and no public exploit code.
Sources
Also known as GHSA-8hjj-9fm5-xw5g, UBUNTU-CVE-2026-96297.