IT SBIT Services
Schneeberger
DEEN
CVE tracker

MongoDB Server: Use-after-free in classic query engine plan cache

CVE-2026-120811Medium 6.0

← All vulnerabilities

Summary

A use-after-free flaw in the classic query engine plan cache of MongoDB Server can expose server process memory. An authenticated user who runs update or bulkWrite commands with a sort specification can later trigger a read of freed memory through $planCacheStats, and the data is returned to the client. Under certain heap reuse conditions, the server may also crash. The CVSS 4.0 base score is 6.0 (MEDIUM).

Affected

  • MongoDB Server 9.0.0 to before 9.0.7
  • MongoDB Server 8.3.0 to before 8.3.16
  • MongoDB Server 8.0.0 to before 8.0.37
  • MongoDB Server 7.0.0 to before 7.0.48
  • Versions before 7.0.0: Unknown.
  • The CNA record states the default configuration is unaffected.

Fixed in

  • MongoDB Server 9.0.7 or later
  • MongoDB Server 8.3.16 or later
  • MongoDB Server 8.0.37 or later
  • MongoDB Server 7.0.48 or later
  • Jira fix versions also list 9.1.0-rc0 and 9.1.0-rc1025.

Workaround

Unknown. No vendor-documented workaround was found. Upgrading is the only remediation in the sources reviewed.

Exploitation

  • No reports of exploitation in the wild were found in the sources reviewed.
  • No public exploit is known. The reproducer is restricted by the vendor (SECBUG-1570).
  • MongoDB confirmed the issue under AddressSanitizer as a heap-use-after-free.

Our recommendation

  • Inventory all MongoDB instances and their versions.
  • Upgrade each instance to the fixed version of its release line (7.0.48, 8.0.37, 8.3.16 or 9.0.7 and later). Verify the version on MongoDB's download page before rollout.
  • Do not expose MongoDB to the internet. Restrict network access to trusted hosts.
  • Review which accounts can authenticate and remove unneeded access.
  • Recheck the MongoDB advisory and the NVD entry in a few days, because the NVD analysis was still pending at publication.

Public exploits

PoC-in-GitHub, Metasploit and Exploit-DB list nothing for this CVE.

Research sources

Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 11 Nov 2026, 14:46.

Original description (NVD)

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.

NVD references (1)

Sources

The tracker combines official, freely usable data sources – updated continuously:

This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.

Affected? We can help.

We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.