PatchSiren cyber security CVE debrief
CVE-2026-96747 MongoDB CVE debrief
A vulnerability in PyMongo's handling of KMS endpoints allows an attacker with write access to the key vault collection to redirect the driver's KMS connection to an arbitrary Unix domain socket path on the application host. This issue affects applications using client-side field level encryption (CSFLE) or Queryable Encryption. The vulnerability can lead to unauthorized connections and potential security breaches. Defenders should assess their exposure and verify the KMS endpoint configuration to prevent unauthorized connections.
- Vendor
- MongoDB
- Product
- pymongo
- CVSS
- MEDIUM 5.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-10-05
- Original CVE updated
- 2026-10-15
- Advisory published
- 2026-10-05
- Advisory updated
- 2026-10-15
Who should care
Defenders responsible for securing applications using PyMongo's client-side field level encryption (CSFLE) or Queryable Encryption should assess their exposure and verify the KMS endpoint configuration.
Why it matters
The vulnerability in PyMongo's handling of KMS endpoints allows an attacker with write access to the key vault collection to redirect the driver's KMS connection to an arbitrary Unix domain socket path on the application host, potentially leading to unauthorized connections.
- An attacker with write access to the key vault collection can redirect the driver's KMS connection to an arbitrary Unix domain socket path on the application host.
- The vulnerability allows for potential unauthorized connections to the application host.
- Defenders should verify the KMS endpoint configuration to prevent unauthorized connections.
- The vulnerability requires verification of the key vault collection security to prevent attackers from writing to it.
Technical summary
PyMongo passed the KMS endpoint of a data key verbatim into `parse_host()`, which returns any string ending in `.sock` unchanged instead of validating it as a hostname and port. This allows an attacker with write access to the key vault collection to redirect the driver's KMS connection to an arbitrary Unix domain socket path on the application host. The vulnerability can lead to unauthorized connections and potential security breaches. The issue affects applications using client-side field level encryption (CSFLE) or Queryable Encryption.
Defensive priority
Defenders should prioritize verifying the KMS endpoint configuration and ensuring that the key vault collection is properly secured.
Recommended defensive actions
- Verify the KMS endpoint configuration to prevent unauthorized connections.
- Ensure that the key vault collection is properly secured to prevent attackers from writing to it.
- Update PyMongo to version 4.18.2 or later to apply the fix.
- Review compensating controls for exposed systems while remediation is scheduled and verified.
- Check relevant monitoring, detection, and logs for exposed assets that need extra review.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
Evidence notes
The vulnerability is caused by PyMongo passing the KMS endpoint of a data key verbatim into `parse_host()`, which returns any string ending in `.sock` unchanged instead of validating it as a hostname and port.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-96747 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-96747
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-96747 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-96747
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
PyMongo: PYTHON-5990 Forced Unix domain socket connection via a .sock KMS endpoint in client-sid
Unverified legacy reference
URL: https://storage.googleapis.com/osv-vulnerabilities/PyPI/GHSA-qx36-8mw2-4r3x.json
osv_dev
-
Source reference
Unverified legacy reference
URL: https://github.com/mongodb/mongo-python-driver/security/advisories/GHSA-qx36-8mw2-4r3x
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/mongodb/mongo-python-driver/pull/3066
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/mongodb/mongo-python-driver/commit/44119d0f9dfa0224d84b03be702a6d9a5ef1dea7
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/mongodb/mongo-python-driver/commit/640dd2383a1a2fb1a10e5222d50ebc0b22a61bd7
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/mongodb/mongo-python-driver
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/mongodb/mongo-python-driver/blob/4.18.2/doc/changelog.rst
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/mongodb/mongo-python-driver/releases/tag/4.18.2
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.