Skip to main content

MongoDB CVE-2026-13071

| EUVDEUVD-2026-47790 HIGH
Use After Free (CWE-416)
2026-07-22 cna@mongodb.com
7.1
CVSS 4.0 · Vendor: mongodb
Share

Severity by source

Vendor (mongodb) PRIMARY
7.1 HIGH
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
6.5 MEDIUM

Network-reachable with a low-privilege read account (PR:L) and no user interaction; impact is a mongod crash so availability-only (A:H) with no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

3
Patch available
Jul 22, 2026 - 21:03 EUVD
Analysis Generated
Jul 22, 2026 - 20:35 vuln.today
CVE Published
Jul 22, 2026 - 20:16 cve.org
HIGH 7.1

DescriptionCVE.org

An authenticated user with read access can cause the mongod process to be terminated through certain aggregation expressions that execute server-side JavaScript. The issue involves improper memory handling during document processing.

AnalysisAI

Denial of service in MongoDB's mongod server allows any authenticated user holding only read privileges to crash the database by submitting aggregation pipeline expressions that invoke server-side JavaScript, triggering a use-after-free (CWE-416) during document processing. The flaw affects availability only and requires valid low-privilege credentials; no public exploit identified at time of analysis and it is not listed in CISA KEV.

Technical ContextAI

MongoDB's aggregation framework supports operators that execute server-side JavaScript inside the mongod process (historically $where, $function, and $accumulator, backed by an embedded JavaScript engine). The root cause is classed as CWE-416 Use After Free: during document processing, memory tied to the JavaScript execution or intermediate aggregation state is freed and subsequently referenced, corrupting the process and forcing mongod to terminate. Because the JavaScript path runs in the same process as the core database engine, memory mishandling there directly impacts database availability rather than being sandboxed. No CPE strings were provided in the input, so exact affected build ranges cannot be enumerated from this data.

RemediationAI

No vendor-released patch version was identified in the provided data, so the fix version cannot be cited here; monitor MongoDB ticket SERVER-128473 (https://jira.mongodb.org/browse/SERVER-128473) and the official MongoDB security advisories, then upgrade mongod to the fixed release once published. As an immediate compensating control, disable server-side JavaScript execution by starting mongod with security.javascriptEnabled: false (or --noscripting), which blocks the vulnerable $where/$function/$accumulator JavaScript paths entirely - the trade-off is that any legitimate queries or aggregation stages relying on server-side JavaScript will fail, so validate application dependencies first. Additionally, apply least privilege by auditing and revoking read access from untrusted or unnecessary accounts, and restrict network exposure of the mongod port to trusted application hosts, since exploitation requires an authenticated session.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

CVE-2020-7610 CRITICAL
9.8 Mar 30

All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8

CVE-2026-19001 CRITICAL
9.5 Aug 12

Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or

Share

CVE-2026-13071 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy