Skip to main content

MongoDB Python Driver EUVDEUVD-2026-86346

| CVE-2026-96747 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-09-24 mongodb GHSA-qx36-8mw2-4r3x
5.3
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Gain write access to CSFLE key metadata
  2. Delivery
    Set KMS endpoint value ending in .sock
  3. Exploit
    Application triggers CSFLE key operation
  4. Execution
    Driver opens local Unix socket connection
  5. Impact
    Initiate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

Python Driver 3.9.0 <4.18.2

Affected Packages

pypi pymongo fix: 4.18.2
euvd python_driver fix: 4.18.2

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

Vendor (mongodb) PRIMARY 5.3 MEDIUM
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
vuln.today AI 5.0 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N
SUSE 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Red Hat 4.3 MEDIUM

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

Lifecycle Timeline

2
Patch available
Sep 24, 2026 - 19:04 EUVD
CVE Published
Sep 24, 2026 - 18:18 cve.org
MEDIUM 5.3

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 21 pypi packages depend on pymongo (18 direct, 3 indirect)

Ecosystem-wide dependent count for version 3.9.0.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Ubiquitous
MongoDB's official Python driver, extremely widely deployed across Python applications
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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 Yes
EPSS 0.1%
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

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

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

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-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

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-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

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

Vendor 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

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