CVE-2026-13062

MongoDB mongos Improper Validation of Internal Flags in Queryable Encryption Write Commands on Sharded Clusters

Published Jul 22, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
An authenticated user with write privileges on a Queryable Encryption-enabled collection may be able to modify internal encryption metadata fields that are intended to be server-controlled, by sending crafted write commands through the mongos router on a sharded cluster. This can result in corruption of encrypted query correctness.

Analysis

AI-generated

Technical impact

MongoDB Server, when running a sharded cluster with Queryable Encryption enabled, allows an authenticated user who has write rights on an encrypted collection to submit crafted write commands through the mongos router. The server incorrectly validates internal encryption metadata fields, which are intended to be immutable. An attacker can therefore alter these fields, leading to corruption of query correctness and potentially causing protected data to be returned incorrectly or accessed in unintended ways. The weakness is classified as CWE‑441, indicating a failure to properly validate internal data structures.

Affected Systems

The vulnerability is confined to MongoDB Server instances that are part of a sharded cluster and have Queryable Encryption enabled. The only known affected vendor/product is MongoDB Server. No specific version numbers are listed in the available information, so all releases that support sharded Queryable Encryption are potentially vulnerable until a patch is applied.

Risk and Exploitability

The CVSS score of 7.1 demonstrates a high‑severity issue. However, the EPSS score of < 1% shows that the probability of exploitation is very low, and the vulnerability is not currently listed in CISA KEV, implying that a public exploit has not been observed. Attackers would need to be authenticated and possess write permissions on the target encrypted collection, limiting the vector to insider threats or accounts that have been compromised. While the risk to organizations that enable Queryable Encryption and grant broad write privileges is moderate to high, the overall likelihood of a real‑world compromise remains low under the present circumstances.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor‑issued patch or upgrade to the latest MongoDB Server release that addresses SERVER‑127831.
  • Limit write permissions on Queryable Encryption‑enabled collections to trusted administrative accounts to prevent unauthorized modifications of encryption metadata.
  • Configure and routinely review audit logging or monitoring to detect anomalous write operations targeting internal flags, enabling timely detection and containment.

Generated by OpenCVE AI on August 3, 2026 at 23:17 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 An authenticated user with write privileges on a Queryable Encryption-enabled collection may be able to modify internal encryption metadata fields that are intended to be server-controlled, by sending crafted write commands through the mongos router on a sharded cluster. This can result in corruption of encrypted query correctness.
Title MongoDB mongos Improper Validation of Internal Flags in Queryable Encryption Write Commands on Sharded Clusters
Weaknesses CWE-441
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-441

    Unintended Proxy or Intermediary ('Confused Deputy')

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Sep 17, 2026, 6:36 PM
Reserved
Jun 23, 2026, 6:00 PM
Status
Analyzed
Published
Jul 22, 2026, 8:16 PM
Modified
Oct 24, 2026, 1:10 PM