CVE-2026-13077
JSON

7.1high

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

Severity
7.1high CVSS:4.0 by mongodb
Exploit likelihood
0.28% (higher than 21% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mongodb
Also known as
BIT-MONGODB-2026-13077

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

Product or packageVersionsReported by
MongoDB MongoDB Serverfrom 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.7CVE List
mongodb mongodbfrom 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.7NVD
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.7Bitnami Vulnerability Database

All scores

mongodb7.1high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
mongodb7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Una comprobación de límites faltante en los accesores del elemento BSON CodeWScope permite a un atacante activar una lectura de pila fuera de límites a través de una pipeline de agregación manipulada. La vulnerabilidad puede ser explotada por un usuario autenticado generando datos BSONColumn malformados que contengan un elemento CodeWScope, eludiendo la validación BSON a nivel de cable. Cuando el elemento falsificado es descomprimido, el valor de tamaño no verificado se utiliza en aritmética de punteros, causando un fallo del servidor o la divulgación del contenido de la memoria de pila adyacente.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-13077 changed 2026-07-23CVE Terms of Use
NVDCVE-2026-13077 changed 2026-10-24Public domain
Bitnami Vulnerability DatabaseBIT-MONGODB-2026-13077 changed 2026-09-08Apache-2.0