Skip to main content

MongoDB Database Tools CVE-2026-119672

| EUVDEUVD-2026-116027 MEDIUM
External Control of File Name or Path (CWE-73)
2026-11-03 mongodb
5.9
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with GridFS metadata-write access
  2. Delivery
    Set target file's stored filename to '-'
  3. Exploit
    Privileged operator runs get_id without --local
  4. Execution
    File contents written to captured stdout
  5. Impact
    Attacker reads disclosed GridFS data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Exploitation Conditions

Exploitation requires all of the following concrete preconditions: (1) the attacker has authenticated access (PR:L) sufficient to modify a GridFS file's stored filename metadata field and sets it to '-'; (2) a higher-privileged operator subsequently retrieves that specific file using mongofiles get_id WITHOUT passing --local, so the attacker-controlled stored filename is used as the output destination and contents are written to standard output; and (3) that standard output is redirected or captured to a location the lower-privileged attacker can read. Limiting factors that reduce realistic risk: the privileged operator's retrieval is a required out-of-band action the attacker does not control (hence AT:P/UI:P), the operator must omit the --local destination (a non-default/incidental invocation), the attacker needs prior authenticated metadata-write access, and the output must be captured somewhere attacker-accessible. Only MongoDB Database Tools versions 3.1.4 through before 100.20.1 are affected.

Impact

This is a medium-severity information-disclosure issue (CVSS 4.0 base 5.9; note the input supplies a CVSS 4.0 vector, not 3.1) whose real-world risk is substantially lower than the raw number suggests because exploitation is heavily conditional. The 4.0 vector AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N shows a network-reachable but authenticated (PR:L) attacker, an attack requirement beyond attacker control (AT:P), and passive user interaction (UI:P) - meaning the attacker cannot complete the attack alone. The vuln.today Decision label is 'this_month' rather than 'act_now' or 'emergency', which is consistent with no CISA KEV listing, no EPSS probability supplied in the input, and no exploit code referenced. The single reference is MongoDB's own CHANGELOG, so there is no public exploit identified at time of analysis. The confidentiality-only impact (VC:H, with VI/VA/SC/SI/SA all N) is real but narrow: it discloses GridFS content to a user who already has authenticated metadata-write access, and only when a more-privileged operator independently triggers the retrieval and the captured output lands somewhere the attacker can read. This profile points to a targeted, opportunistic weakness rather than a widespread or automatable threat - prioritize it as routine patching, not an emergency.

Exploit ScenarioDerived

An authenticated user with write access to GridFS file metadata changes a stored file's filename to '-'. Later, a higher-privileged operator runs a mongofiles get_id retrieval for that file without specifying --local, so the stored '-' is used as the output destination and the file contents are written to standard output instead of a local file. If that standard output has been redirected or captured somewhere the lower-privileged user can read, they obtain GridFS content they could not otherwise access. No public exploit identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 03, 2026

Information disclosure in MongoDB Database Tools versions 3.1.4 through before 100.20.1 allows an authenticated user who can modify GridFS file metadata to set the stored filename to '-' and cause a later authorized mongofiles get_id retrieval without --local to write the file contents to standard output instead of a local file. The attacker only gains access to content they cannot read directly if a higher-privileged operator performs that retrieval and the captured standard output is readable by the attacker, making exploitation highly conditional; no public exploit was identified at time of analysis.

RemediationAI

Upgrade MongoDB Database Tools to 100.20.1 or later; the affected range ends before 100.20.1, and the vendor changelog at https://github.com/mongodb/mongo-tools/blob/master/CHANGELOG.md should be consulted for release details. Until upgrading, operators can require an explicit --local destination for mongofiles get_id so the attacker-influenced stored filename is not used as the output path, and can avoid redirecting or capturing mongofiles output into locations readable by lower-privileged users; the trade-off is that explicit destination management and output-capture changes are operationally intrusive. Restricting who can modify GridFS filename metadata to trusted users also reduces exposure, at the cost of tightening metadata-write permissions for legitimate workflows. No separate vendor workaround is documented in the provided references; updating is the complete fix.

Affected VersionsENISA

Database Tools 3.1.4 <100.20.1

Affected Packages

euvd database_tools fix: 100.20.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

MongoDB Database Tools includes mongofiles, a command-line client for GridFS, MongoDB's specification for storing files larger than the BSON document size limit by splitting content across chunks and keeping file metadata in a files collection. The get_id operation retrieves a GridFS file by its identifier. When --local is omitted, mongofiles uses the database-stored filename as the output destination; a filename of '-' is treated as standard output by normal CLI conventions. The root cause is CWE-73, External Control of File Name or Path: a lower-privileged authenticated user with GridFS metadata-write access controls a value that a higher-privileged operator's later retrieval uses as an output path. The supplied CVSS 4.0 vector is AV:N/AC:L/AT:P/PR:L/UI:P with confidentiality impact only, while the independent assessment maps this to CVSS 3.1 AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N. Exploitation requires the attacker to modify the stored filename, a separate higher-privileged retrieval without --local, and capture of standard output in an attacker-accessible location; this is not a direct unauthenticated file-read primitive.

Know when MongoDB gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mongodb) PRIMARY 5.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 4.8 MEDIUM

Attacker needs authenticated metadata-write (PR:L); success depends on a privileged operator retrieving without --local and output being captured accessibly, conditions beyond attacker control (AC:H, UI:R); confidentiality-only disclosure.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 03, 2026 - 17:18 EUVD
CVE Published
Nov 03, 2026 - 16:09 cve.org
MEDIUM 5.9

DescriptionCVE.org

MongoDB Database Tools mongofiles uses a database-stored GridFS filename as the output destination for get_id when --local is not specified. A user who can modify the file metadata can set the stored filename to '-', causing a later authorized retrieval to write the file contents to standard output instead of a local file. If standard output is captured in a location accessible to that user, this may disclose GridFS content the user cannot read directly. Exploitation requires a higher-privileged operator to retrieve the affected file without an explicit local destination and attacker access to the captured output. This issue affects MongoDB Database Tools from version 3.1.4 through versions before 100.20.1.

Threat Intelligence Overview

Prevalence
High
standard tooling shipped alongside widely-deployed MongoDB database installations
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org Vulnrichment GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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

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