CVE-2026-82056: A race condition in MongoDB server's text index query parsing can cause a heap use-after-free read when handling upsert retry paths.
Medium CVSS 5.3
- CVE id
- CVE-2026-82056
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| MongoDB Runtimes and servers |
>= 7.0.0, < 7.0.41 >= 8.0.0, < 8.0.30 >= 8.3.0, < 8.3.9 |
7.0.41, 8.0.30, 8.3.9 |
How to fix it
Upgrade MongoDB to the fixed release of the line you run: 7.0.41, 8.0.30, 8.3.9.
mongod --version
- Install the patched MongoDB release of your series (the mongo image tag or the mongodb-org packages); on Atlas, MongoDB patches the servers.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
A race condition in MongoDB server's text index query parsing can cause a heap use-after-free read when handling upsert retry paths. Under certain concurrent index lifecycle operations, a raw pointer to internal text index metadata may be dereferenced after the underlying structures have been freed, leading to a server crash. An authenticated user with readWrite privileges can trigger this condition through specific concurrent text-search and index management operations, resulting in denial of service for all connected clients. This
References
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.