Original description
A missing bounds check in the BSON CodeWScope element accessors allows an attacker to trigger an out-of-bounds heap read via a crafted aggregation pipeline. The vulnerability can be exploited by an authenticated user by generating a malformed BSONColumn data containing a CodeWScope element, bypassing wire-level BSON validation. When the forged element is decompressed, the unchecked size value is used in pointer arithmetic, causing either a server crash or disclosure of adjacent heap memory contents.
Affected software
- MongoDB ≥ 8.2.0 < 8.2.12≥ 8.3.0 < 8.3.7≥ 8.0.0 < 8.0.28≥ 7.0.0 < 7.0.39 Fixed in: 8.2.12, 8.3.7, 8.0.28, 7.0.39 exact match
Details
- Published
- 2026-07-23
- Last modified
- 2026-07-23
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N- CWE
- CWE-125
- EPSS (30-day exploit probability)
- 0.42% (percentile 37)
References
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.