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.
Fix
Patch, vendor advisory and mitigation references on NVD 1
- https://jira.mongodb.org/browse/SERVER-129103 Vendor Advisory, Patch
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 7.1 · mongodbNVD modified 2026-10-24 13:10
Affected (CPE criteria) 1
cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*
References 1
- https://jira.mongodb.org/browse/SERVER-129103 Vendor Advisory, Patch