CVE-2026-96747

Forced local Unix socket connection via dot-sock KMS endpoint in client-side field encryption

Published Sep 24, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The MongoDB Python Driver’s client‑side field level encryption can mistakenly treat a key management endpoint ending in ".sock" as a path to a local Unix domain socket rather than an external server. A user who can write to the encryption key metadata stored in the database can force an application using the driver to open a connection to a local socket on the application host. Only the initial part of a TLS handshake is transmitted, so the attacker cannot choose arbitrary content, but the ability to initiate local connections could allow exploitation of other listening services or denial of service. The impact is therefore a local misconfiguration that could expose intermediate services to local attackers. The affected system is the MongoDB Python Driver. All versions prior to the 4.18.2 release are potentially vulnerable, as the advisory and changelog indicate the issue was fixed in that version. The driver is used by Python applications that interact with MongoDB databases. Risk assessment shows a medium CVSS score of 5.3, no EPSS data, and the vulnerability is not listed in CISA’s KEV catalog. The attack vector requires local write access to key metadata, typically an insider or compromised role, making the likelihood of exploitation moderate in environments where such permissions are not strictly controlled.

Affected Systems

Python applications that use the MongoDB Python Driver are affected. Versions earlier than 4.18.2 contain the vulnerability; the 4.18.2 release and later incorporate the fix.

Risk and Exploitability

The CVSS base score of 5.3 indicates a medium impact. No EPSS data is available, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires that an attacker have write permissions to the encryption key metadata in the MongoDB database, which typically corresponds to an insider or a role with elevated privileges. Because such permissions are generally tightly controlled, the probability of exploitation is moderate in well‑managed environments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to MongoDB Python Driver version 4.18.2 or later
  • Restrict write permissions to encryption key metadata in the database
  • Apply any additional vendor security patches if newer releases are available

Generated by OpenCVE AI on September 25, 2026 at 04:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4930-1 pymongo security update
Github GHSA Github GHSA GHSA-qx36-8mw2-4r3x PyMongo: PYTHON-5990 Forced Unix domain socket connection via a .sock KMS endpoint in client-side field level encryption
History
Type Values Removed Values Added
First Time appeared Mongodb
Mongodb python Driver
Vendors & Products Mongodb
Mongodb python Driver
Type Values Removed Values Added
References
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Forced local Unix socket connection via dot-sock KMS endpoint in client-side field encryption
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N'}

cvssV4_0

{'score': 5.3, 'vector': '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'}

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Sep 24, 2026, 7:12 PM
Reserved
Sep 23, 2026, 3:45 PM
Status
Awaiting Analysis
Published
Sep 24, 2026, 7:17 PM
Modified
Sep 24, 2026, 9:04 PM
Severity
Moderate
Public date
Sep 24, 2026, 6:18 PM