CVE-2026-13065

MongoDB $linearFill Window Function Improper Input Validation Leading to Process Termination

Published Jul 22, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
A user with read-only privileges is able to craft an aggregation pipeline using the $linearFill window function operator with a specific sortBy expression type to cause the mongod process to terminate abnormally, resulting in denial of service. The issue stems from insufficient validation of sort specifications during execution.

Analysis

AI-generated

Technical impact

A user who has only read‑only privileges can craft an aggregation pipeline that uses the $linearFill window function with a deliberately malformed sortBy expression. The insufficient validation of the sort specification in the server causes the mongod process to terminate abnormally, depriving the system of database services. This flaw is identified as CWE‑476.

Affected Systems

MongoDB Server is affected. All installations of the MongoDB Server that incorporate the $linearFill window function could be vulnerable, as no specific version numbers are provided in the advisory.

Risk and Exploitability

The CVSS score of 7.1 places this issue in the moderate to high severity range. The EPSS score is reported as less than 1 %, indicating a very low but non‑zero likelihood of exploitation. It is not listed in the CISA KEV catalog. The likely attack vector is remote; an attacker with read‑only access to a managed database can submit a malicious aggregation request without needing to bypass authentication. The threat is most acute in environments where read‑only credentials are exposed to untrusted clients or where internal users can send arbitrary aggregation pipelines.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest MongoDB Server release that contains the fix for the $linearFill input‑validation bug; if no patch is publicly available, contact MongoDB support to obtain a remediation patch.
  • Create custom roles that explicitly omit the $linearFill operator or assign read‑only users to databases that do not use the window function, thereby preventing the malformed pipeline from reaching the server.
  • Enable aggregation‑command auditing and define alert rules for suspicious $linearFill usage; if a malicious pipeline is detected, perform a controlled restart of mongod and investigate the source of the request.

Generated by OpenCVE AI on August 3, 2026 at 23:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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 A user with read-only privileges is able to craft an aggregation pipeline using the $linearFill window function operator with a specific sortBy expression type to cause the mongod process to terminate abnormally, resulting in denial of service. The issue stems from insufficient validation of sort specifications during execution.
Title MongoDB $linearFill Window Function Improper Input Validation Leading to Process Termination
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
Jul 23, 2026, 3:02 PM
Reserved
Jun 23, 2026, 6:00 PM
Status
Analyzed
Published
Jul 22, 2026, 8:16 PM
Modified
Oct 24, 2026, 1:10 PM