# CVE-2026-13077: Out-of-Bounds Heap Read in BSON CodeWScope Element Parsing via Malformed BSONColumn Data

- Severity: High 7.1 (CVSS:4.0, scored by mongodb) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-07-22T19:12:11.370Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: BIT-MONGODB-2026-13077
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mongodb

## 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.

(As written by CVE List.)

## Affected

- MongoDB MongoDB Server: from 7.0 before 7.0.39; from 8.0 before 8.0.28; from 8.2.0 before 8.2.12; from 8.3.0 before 8.3.7
- mongodb mongodb: from 7.0.0 before 7.0.39; from 8.0.0 before 8.0.28; from 8.2.0 before 8.2.12; from 8.3.0 before 8.3.7
- mongodb (Bitnami): from 7.0.0 before 7.0.39; from 8.0.0 before 8.0.28; from 8.2.0 before 8.2.12; from 8.3.0 before 8.3.7

## Every score

- mongodb: CVSS:4.0 7.1 High `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`
- mongodb: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://jira.mongodb.org/browse/SERVER-129103> (advisory, patch, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-13077> (web)

## Sources

- CVE List: [CVE-2026-13077](https://www.cve.org/CVERecord?id=CVE-2026-13077), CVE Terms of Use, modified 2026-07-23
- NVD: [CVE-2026-13077](https://nvd.nist.gov/vuln/detail/CVE-2026-13077), Public domain, modified 2026-10-24
- Bitnami Vulnerability Database: [BIT-MONGODB-2026-13077](https://osv.dev/vulnerability/BIT-MONGODB-2026-13077), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-13077 · Whole record: https://cve.day/CVE-2026-13077.json · Rebuilt by cve.day 2026-11-25T22:59:29.850Z
