CVE-2026-9740

Unbounded recursion in BSONColumn interleaved-reference causes pre-auth stack overflow

Published Jun 9, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
A vulnerability in MongoDB Server's BSON validation logic allows an unauthenticated user to crash the mongod process by sending a specially crafted message. The BSON validator's handling of certain nested binary data structures permits uncontrolled mutual recursion between validation functions, where each re-entry resets internal depth tracking.

Analysis

AI-generated

Technical impact

A flaw in MongoDB Server’s BSON validator permits an attacker to send a specially crafted message that induces uncontrolled recursion between validation functions. Because each recursive call resets the validator’s depth counter, the call stack grows without bound until the process exhausts its memory. This results in a crash of the mongod daemon, making the database service unavailable for legitimate users until a restart occurs. The vulnerability is present before authentication, so any network user could trigger it.

Affected Systems

The issue affects MongoDB Server installations. The affected product list does not specify particular release numbers, so all releases lacking the fix should be considered vulnerable until updated.

Risk and Exploitability

The CVSS score of 8.7 classifies the flaw as High severity. No EPSS data is currently available, but the lack of a KEV listing does not reduce the risk of exploitation. The likely attack vector is remote, with an unauthenticated attacker able to send a malicious BSON payload over the network to provoke the stack overflow. Once triggered, the entire mongod process terminates, leading to a denial of service. There are no known restrictions on pre‑authentication for this flaw, making it easy for threat actors to exploit from anywhere the database is exposed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest MongoDB Server release that contains the BSON recursion patch.
  • Restrict network access to the mongod service by configuring firewall rules or network segmentation to limit exposure to trusted hosts.
  • Configure automated monitoring and automatic restarts for the mongod process, and review logs for stack overflow indications to ensure service availability.

Generated by OpenCVE AI on June 10, 2026 at 01:32 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
CPEs cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*
Vendors & Products Mongodb mongodb
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 vulnerability in MongoDB Server's BSON validation logic allows an unauthenticated user to crash the mongod process by sending a specially crafted message. The BSON validator's handling of certain nested binary data structures permits uncontrolled mutual recursion between validation functions, where each re-entry resets internal depth tracking.
Title Unbounded recursion in BSONColumn interleaved-reference causes pre-auth stack overflow
Weaknesses CWE-674
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

Sources

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