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 package | Versions | Reported by |
|---|---|---|
| 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 | CVE List |
| 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 | NVD |
| 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 | Bitnami Vulnerability Database |
All scores
| mongodb | 7.1high CVSS:4.0 | 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 | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
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
| https://jira.mongodb.org/browse/SERVER-129103 | advisory, patch, vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-13077 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-13077 changed 2026-07-23 | CVE Terms of Use |
| NVD | CVE-2026-13077 changed 2026-10-24 | Public domain |
| Bitnami Vulnerability Database | BIT-MONGODB-2026-13077 changed 2026-09-08 | Apache-2.0 |