CVE-2026-13077

Out-of-Bounds Heap Read in BSON CodeWScope Element Parsing via Malformed BSONColumn Data

State
Published
Severity
7.1 High
Published
Jul 22, 2026
Updated
Jul 23, 2026
Reserved
Jun 23, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.07.1 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:Nmongodb
3.17.1 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:Hmongodb

Weaknesses

Affected Products

ProductVersions
MongoDB ServerMongoDB
  • 7.0 to before 7.0.39Affected
  • 8.0 to before 8.0.28Affected
  • 8.2.0 to before 8.2.12Affected
  • 8.3.0 to before 8.3.7Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.