cvelo
P3 · MediumCVSS 5.9EPSS 0.3%

Use-After-Free in MongoDB Server Classic Query Engine Plan Cache Leads to Information Disclosure and Denial of Service

  • CVE-2026-120811
  • GHSA-3r42-9858-556g
  • EUVD-2026-122822

Description

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.

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
    • If you run 7.0.xupdate to 7.0.48 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 versionsFixed in
    from 9.0.0 to before 9.0.79.0.7
    from 8.3.0 to before 8.3.168.3.16
    from 8.0.0 to before 8.0.378.0.37
    from 7.0.0 to before 7.0.487.0.48

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.