CVE-2026-13077: MongoDB Server Out-of-Bounds

CVE-2026-13077

NVD

Vulnerability Summary

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.
Severity Level
HIGH(7.1)
Published Date
Jul 22, 2026
Last Modified
Jul 23, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
0.25%Probability
Root Weakness (CWE)
The software reads data past the end, or before the beginning, of the intended buffer.
CVSS v4.0 Base Metrics — Score 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
Attack VectorNetwork
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredLow
User InteractionNone
Confidentiality (Vulnerable System)Low
Integrity (Vulnerable System)None
Availability (Vulnerable System)High
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 7.1)
CVSS v3.1 Base Metrics — Score 7.1 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityLow
IntegrityNone
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • MongoDB Server >= 7.0 and < 7.0.39
  • MongoDB Server >= 8.0 and < 8.0.28
  • MongoDB Server >= 8.2.0 and < 8.2.12
  • MongoDB Server >= 8.3.0 and < 8.3.7
Patched Versions
  • MongoDB Server 7.0.39
  • MongoDB Server 8.0.28
  • MongoDB Server 8.2.12
  • MongoDB Server 8.3.7

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is high.

  1. Check whether you run MongoDB Server and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Jul 22, 2026Published
  • Jul 23, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new MongoDB Server CVEsYou are reading CVE-2026-13077. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

External References

Data last checked: Dec 2, 2026 20:18 UTC