CVE-2026-9743

Aggregation sub-pipeline null dereference may allow DoS via crafted getMore

Published Jun 9, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
In MongoDB Server 8.0, an aggregation stage can leave its _subPipeline field null during processing of certain pipelines. If a getMore is subsequently issued on the same cursor, the server may dereference this null sub-pipeline when reattaching to the operation context, accessing an invalid address and crashing the process. This issue allows an authenticated user who can run aggregation pipelines to cause a denial of service by issuing a specially crafted aggregation followed by getMore on affected versions.

Analysis

AI-generated

Technical impact

A bug in MongoDB Server 8.0 allows an aggregation stage to leave its _subPipeline field null while processing certain pipelines. When a subsequent getMore is requested on the same cursor, the server may dereference the null subPipeline during reattachment to the operation context, leading to an invalid memory access and crashing the process. The flaw is a null pointer dereference (CWE-476) and results in a denial of service that requires an authenticated user with permission to run aggregation pipelines.

Affected Systems

MongoDB Server 8.0 is vulnerable. The issue is specific to this major version and may not affect earlier releases. Any deployment of this version that permits user-initiated aggregation pipelines is affected.

Risk and Exploitability

The CVSS score of 7.1 indicates a medium to high severity. An attacker needs to authenticate and have the ability to execute custom aggregation queries. The expected attack vector is remote, as long as the attacker can log in to the database with sufficient privileges. EPSS is not available and the vulnerability is not listed in KEV, but any instance that allows user‑supplied aggregation remains at risk until remedied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Restrict aggregation pipeline execution to trusted users or roles to limit the attack surface
  • Monitor database logs for anomalous aggregation and getMore patterns to detect attempted exploitation
  • Apply any available vendor patch for MongoDB Server 8.0 or upgrade to a later release that contains the fix once it is released

Generated by OpenCVE AI on June 9, 2026 at 23:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Mongodb mongodb
CPEs cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*
Vendors & Products Mongodb mongodb
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb mongodb Server
Vendors & Products Mongodb
Mongodb mongodb Server
Type Values Removed Values Added
Description In MongoDB Server 8.0, an aggregation stage can leave its _subPipeline field null during processing of certain pipelines. If a getMore is subsequently issued on the same cursor, the server may dereference this null sub-pipeline when reattaching to the operation context, accessing an invalid address and crashing the process. This issue allows an authenticated user who can run aggregation pipelines to cause a denial of service by issuing a specially crafted aggregation followed by getMore on affected versions.
Title Aggregation sub-pipeline null dereference may allow DoS via crafted getMore
Weaknesses CWE-476
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Jun 10, 2026, 1:50 PM
Reserved
May 27, 2026, 5:34 PM
Status
Analyzed
Published
Jun 9, 2026, 11:17 PM
Modified
Jul 23, 2026, 9:10 AM