CVE-2026-11933

Post-authentication use-after-free in server-side JavaScript BSON-to-array conversion

Published Jun 12, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
A use-after-free vulnerability exists in MongoDB Server's server-side JavaScript engine when converting BSON documents to JavaScript arrays. An authenticated user with read privileges who is able to run server-side JavaScript (for example, via $where or $function) can cause the server to access memory that has already been freed. This may result in disclosure of information from the mongod process memory or a denial of service through a server crash.

Analysis

AI-generated

Technical impact

The vulnerability is a use‑after‑free in MongoDB Server’s server‑side JavaScript engine used during BSON‑to‑array conversion. When an authenticated user with read permissions can execute JavaScript by using operators such as $where or $function, the server may dereference freed memory. This can reveal private data from the mongod process or cause an immediate crash, leading to a denial of service. The flaw is a classic use‑after‑free, described by CWE‑416 and CWE‑787.

Affected Systems

Affected systems include all MongoDB Server installations that expose the server‑side JavaScript runtime. Any version that accepts $where or $function calls in queries is vulnerable, regardless of deployment size. Version ranges are not enumerated in the data, so all installations that have not applied the referenced Jira fix are considered at risk.

Risk and Exploitability

The CVSS score of 8.7 reflects a high‑severity condition, and the EPSS score of 0.00384 indicates a very low exploitation probability, so the current exploitation likelihood is low. The vulnerability is not listed in CISA’s KEV catalog. The flaw is a classic use‑after‑free, described by CWE‑416 and CWE‑787. To exploit it, an attacker must first authenticate with sufficient privileges to run server‑side JavaScript; the attack vector is thus purely authenticated. Once there, the attacker can trigger the use‑after‑free by submitting a specially crafted BSON document, potentially reading sensitive memory or crashing the server.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MongoDB to a version that includes the fix for SERVER-128125.
  • Disable server‑side JavaScript execution by removing $where and $function operators from queries or setting the JavaScript engine to read‑only mode.
  • Restrict authorized users to the minimal privileges required, ensuring that accounts that cannot run server‑side JavaScript do not have read access.

Generated by OpenCVE AI on August 12, 2026 at 01:13 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': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb mongodb
Vendors & Products Mongodb
Mongodb mongodb
Type Values Removed Values Added
Description A use-after-free vulnerability exists in MongoDB Server's server-side JavaScript engine when converting BSON documents to JavaScript arrays. An authenticated user with read privileges who is able to run server-side JavaScript (for example, via $where or $function) can cause the server to access memory that has already been freed. This may result in disclosure of information from the mongod process memory or a denial of service through a server crash.
Title Post-authentication use-after-free in server-side JavaScript BSON-to-array conversion
Weaknesses CWE-787
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Jun 13, 2026, 3:55 AM
Reserved
Jun 10, 2026, 6:54 PM
Status
Analyzed
Published
Jun 12, 2026, 2:16 AM
Modified
Jun 22, 2026, 2:38 PM