Out-of-bounds Read in MongoDB

CVE-2026-13077

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.

Vulnerability class: Buffer Overflow

EPSS: 0.003 (19.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-13077?
CVE-2026-13077 is a high-severity vulnerability in MongoDB, classified under Out-of-bounds Read. CVSS score: 7.1/10. Published 2026-07-22.
How severe is CVE-2026-13077?
High severity. CVSS v3 base score is 7.1 out of 10.