CVE-2026-120811
Use-After-Free in MongoDB Server Classic Query Engine Plan Cache Leads to Information Disclosure and Denial of Service
Impact
A use-after-free issue exists in the MongoDB server’s classic query engine plan cache. Under certain query conditions, an unowned reference to data from an earlier command can be retained in cached plan statistics. After the originating memory is freed, a subsequent diagnostic command serializing those statistics can read freed heap memory, potentially returning sensitive server process memory contents to the authenticated client. Under certain heap reuse conditions, this may also cause the server to crash.
An attacker can exploit this over the network, with a regular user account, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, low risk of outages.
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| MongoDB | MongoDB Server | from 9.0.0 before 9.0.7 from 8.3.0 before 8.3.16 from 8.0.0 before 8.0.37 from 7.0.0 before 7.0.48 |
| MongoDB, Inc. | MongoDB Server | from 8.3.0 before 8.3.16 from 8.0.0 before 8.0.37 from 7.0.0 before 7.0.48 from 9.0.0 before 9.0.7 |