Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with GridFS metadata-write access
-
DeliverySet target file's stored filename to '-'
-
ExploitPrivileged operator runs get_id without --local
-
ExecutionFile contents written to captured stdout
-
ImpactAttacker 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
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
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8
Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or
EUVD-2026-116027
GHSA-vj7x-r9xp-w7fv
NVD
CVE.org
Vulnrichment
Exploit-DB