CVE-2026-13077: A missing bounds check in the BSON CodeWScope element accessors allows an attacker to trigger an out-of-bounds
CVE-2026-13077 is a high-severity flaw (CVSS 7.1) affecting mongodb. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.1 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 65%) |
| CISA exploited list | No |
| Weakness | CWE-125 |
| Published | 2026-07-22 |
| Last modified | 2026-10-24 |
Last updated 2026-10-24 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-13077?
mongodb: upgrade to 7.0.39, 8.0.28, 8.2.12, 8.3.7. Exact commands for each OS are on this page.
Is CVE-2026-13077 being exploited?
CVE-2026-13077 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-13077 affect?
CVE-2026-13077 affects mongodb. Severity is high (CVSS 7.1). 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 malform
How urgent is CVE-2026-13077?
Priority 34/100. High severity
Software pages
Related CVEs
- CVE-2026-13072 HIGH 8.1 UPGRADE When compute mode is enabled on a standalone mongod instance, insufficient validation of externally sourced BS
- CVE-2026-13059 HIGH 8.1 UPGRADE An authenticated user with low privileges may be able to perform unauthorized reads and writes on data protect
- CVE-2026-13078 HIGH 7.7 UPGRADE A vulnerability was discovered in MongoDB Server where the server-side MozJS scripting engine unconditionally
- CVE-2026-13065 MEDIUM 6.5 UPGRADE A user with read-only privileges is able to craft an aggregation pipeline using the $linearFill window functio
- CVE-2026-13074 MEDIUM 5.3 UPGRADE An unauthenticated remote client can cause excessive CPU consumption on a MongoDB server by sending a specific