Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain write access to CSFLE key metadata
-
DeliverySet KMS endpoint value ending in .sock
-
ExploitApplication triggers CSFLE key operation
-
ExecutionDriver opens local Unix socket connection
-
ImpactInitiate TLS handshake against local service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires (1) the application to use the MongoDB Python Driver's client-side field level encryption (CSFLE) feature - a non-default, opt-in capability - and (2) the attacker to already hold WRITE access to the encryption key metadata stored in the database, allowing modification of the key management (KMS) endpoint value to a string ending in '.sock'. Impact is strictly limited to opening connections to LOCAL Unix domain sockets on the application host, and only the start of a TLS handshake is transmitted - no attacker-chosen content reaches the socket, so this cannot exfiltrate data or reach arbitrary remote hosts. Affected versions are 3.9.0 through before 4.18.2. |
| Impact | This is a genuinely low-priority, low-risk issue despite the CWE-918 SSRF classification. The vendor CVSS 4.0 base score of 5.3 (medium) accurately reflects a heavily-constrained flaw: exploitation requires PR:L (write access to the encryption key metadata stored in the database - already a privileged position), and the impact is capped at SC:L with VC:N/VI:N/VA:N, meaning no confidentiality, integrity, or availability loss to the vulnerable system itself. The description explicitly limits impact: only the START of a TLS handshake is transmitted to the local socket, and 'no chosen content is transmitted,' so this is a local-socket probe primitive, not a data-exfiltration or full SSRF-to-internal-service chain. No EPSS score, no CISA KEV listing, and no public POC are present in the input - no signal of real-world exploitation. There is no conflict between the CVSS vector and the description; both agree the attacker must already control key metadata. Net: a defense-in-depth hardening fix, not an urgent patch, for the vast majority of deployments (most PyMongo users do not enable CSFLE with attacker-writable KMS endpoints). |
| Exploit ScenarioDerived | An attacker who has obtained write access to the client-side field level encryption (CSFLE) key metadata in the MongoDB database modifies a key management endpoint value to end in '.sock'. When the driver-using application next performs a CSFLE operation, it opens a connection to that path as a local Unix domain socket on the application host, initiating a TLS handshake against a local service. No public exploit code is identified at time of analysis, and the primitive only reveals whether a local socket exists/accepts a handshake - no chosen data is sent. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 24, 2026
The MongoDB Python Driver (PyMongo) versions 3.9.0 through 4.18.1 can be induced to open connections to local Unix domain sockets on the application host when an attacker who already holds write access to the encryption key metadata in the database alters a key management (KMS) endpoint value so that it ends in '.sock' - a string the client-side field level encryption (CSFLE) code path mistakes for a local socket path instead of a remote host. Exploitation requires the opt-in, non-default CSFLE feature to be in use and an authenticated attacker with database-side write access to the key vault, and it is only reachable over the network in the sense that CVSS scores the vector AV:N/PR:L; the transmitted bytes are restricted to the beginning of a TLS handshake, so no attacker-chosen content reaches the socket and data exfiltration or arbitrary remote-host reachability is not achievable. No public exploit code has been identified at time of analysis and the issue is not in CISA KEV; despite the CWE-918 (SSRF) classification, this is a low-priority, low-impact defect. Vendor-released patch: 4.18.2.
RemediationAI
Upgrade the MongoDB Python Driver to 4.18.2 or later - this is the vendor-released patch - as advertised in the GitHub release tag (https://github.com/mongodb/mongo-python-driver/releases/tag/4.18.2) and detailed in the 4.18.2 changelog (https://github.com/mongodb/mongo-python-driver/blob/4.18.2/doc/changelog.rst); no server-side MongoDB upgrade is required because the flaw lies in the driver. Where an immediate upgrade is impractical, the most effective compensating control is to lock down the key vault collection: revoke write privileges on the encryption key metadata from all non-administrative database users so the KMS endpoint value cannot be tampered with (trade-off: tighter IAM/role design and possible application refactoring if the app currently writes key material directly). Additionally, validate or allow-list expected KMS endpoint values in configuration and reject any endpoint string ending in '.sock' before it reaches the driver's encryption options (trade-off: application-level code change that must be maintained in step with KMS rotation), and restrict the UNIX socket directory used by the application host so unexpected '.sock' targets are not reachable (trade-off: filesystem permission management on every application host). Because exploitation requires the non-default CSFLE feature and database-side write access, and because only TLS-handshake-prefix bytes are emitted, these steps are proportionate to a low-severity issue rather than a break-glass response; no public exploit code has been identified at time of analysis.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in pypi, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
At the heart of this issue is CWE-918 (Server-Side Request Forgery) manifesting in MongoDB's client-side field level encryption (CSFLE) implementation for the Python driver. CSFLE relies on a key management service (KMS) endpoint, stored as metadata in the database's key vault collection, to fetch the master key used for wrapping and unwrapping data encryption keys. The vulnerable code does not adequately distinguish between a remote KMS host and a local Unix domain socket path, so a KMS endpoint string terminating in '.sock' is interpreted as a local socket filesystem path, causing the driver to initiate a connect() to that socket on the application host. Importantly, the driver then performs the initial stages of a TLS handshake over that connection - the affected byte flow is limited to the opening of the handshake, which bounds what a hostile or unexpected socket listener could observe or influence. The CPE record identifies the affected component as cpe:2.3:a:mongodb:python_driver across the affected range (3.9.0 up to but not including 4.18.2), and the root cause is an input-validation/parsing gap in how KMS endpoints are classified (socket path vs. hostname) rather than a memory-safety or injection defect. The independent assessment's CVSS:3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N) reflects that privileges are required (write access to encryption metadata), confidentiality impact is limited, and there is no integrity or availability impact, which is consistent with the TLS-handshake-only nature of the outbound traffic.
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:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N
PR:L because the attacker must already have write access to encryption key metadata; S:C and C:L reflect connections reaching local sockets beyond the driver's authority; no chosen content means I:N/A:N.
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
The client-side field level encryption support in the MongoDB Python Driver can treat a key management endpoint value ending in ".sock" as a local Unix domain socket path rather than a remote host. A user with write access to the encryption key metadata stored in the database can cause an application using the driver to open connections to local sockets on the application host. Data sent over these connections is limited to the start of a TLS handshake, so no chosen content is transmitted.
Blast Radius
ecosystem impact- 21 pypi packages depend on pymongo (18 direct, 3 indirect)
Ecosystem-wide dependent count for version 3.9.0.
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
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
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
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
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
Same weakness CWE-918 – Server-Side Request Forgery (SSRF)
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Fixed |
| openSUSE Leap 16.0 | Fixed |
| openSUSE Tumbleweed | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP4 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.3 | Affected |
| openSUSE Leap 15.4 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-86346
GHSA-qx36-8mw2-4r3x
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB