CVE-2026-120678

MongoDB C Driver leaks the decompressed reply buffer when an OP_COMPRESSED reply fails to parse (denial of service)

Published Nov 3, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
A memory management flaw in the MongoDB C Driver's handling of compressed responses may cause the client library to hold on to memory that is never released. An unauthenticated party that controls the database endpoint a client application connects to may cause repeated, unbounded memory growth in that application, which may result in the application becoming unavailable. No credentials, transport security settings, or user interaction are required.

Analysis

AI-generated

Technical impact

The MongoDB C Driver contains a memory management flaw in the handling of compressed responses. When an OP_COMPRESSED reply from a MongoDB server cannot be parsed, the driver erroneously retains the decompressed reply buffer and never releases it. An unauthenticated user that controls the database endpoint can send malformed or repeated compressed replies, causing the client library to consume increasingly large amounts of memory until the application exhausts available resources and becomes unavailable. No credentials or transport security settings are required for an attacker to exploit the vulnerability, which can be triggered purely through normal client-server communication.

Affected Systems

MongoDB C Driver; affected across all supported versions. Specific version ranges are not disclosed in the available data.

Risk and Exploitability

The CVSS score is 8.7, indicating high severity. EPSS score is unavailable, and the vulnerability is not listed in CISA KEV. The attack vector requires only that an application connect to a compromised or malicious MongoDB endpoint, with no authentication or user interaction needed. While the precise probability is not quantified, the lack of authentication barriers means the exploitation likelihood is non-negligible, and the resource exhaustion can lead to application unavailability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest MongoDB C Driver release that fixes the memory leak in compressed reply handling.
  • If an upgrade cannot be deployed immediately, disable the use of OP_COMPRESSED responses on the server or configure the driver to reject malformed compressed replies, limiting the attacker’s ability to trigger the leak.
  • Implement runtime memory usage monitoring and enforce resource limits or watchdog mechanisms in the client application so that unbounded memory growth is detected and the application is restarted or the connection is severed before it leads to a complete service outage.

Generated by OpenCVE AI on November 3, 2026 at 20:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb c Driver
Vendors & Products Mongodb
Mongodb c Driver
Type Values Removed Values Added
Title mongo-c-driver leaks the decompressed reply buffer when an OP_COMPRESSED reply fails to parse (denial of service) MongoDB C Driver leaks the decompressed reply buffer when an OP_COMPRESSED reply fails to parse (denial of service)
Type Values Removed Values Added
Description A memory management flaw in the MongoDB C Driver's handling of compressed responses may cause the client library to hold on to memory that is never released. An unauthenticated party that controls the database endpoint a client application connects to may cause repeated, unbounded memory growth in that application, which may result in the application becoming unavailable. No credentials, transport security settings, or user interaction are required.
Title mongo-c-driver leaks the decompressed reply buffer when an OP_COMPRESSED reply fails to parse (denial of service)
Weaknesses CWE-401
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Nov 3, 2026, 8:11 PM
Reserved
Nov 2, 2026, 7:09 PM
Status
Awaiting Analysis
Published
Nov 3, 2026, 7:17 PM
Modified
Nov 3, 2026, 9:17 PM