Skip to content
Heist/ feed
Back to feed
Medium

pymongo — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-96747

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.

Products
pymongo
Affected versions
2.6-1, 2.6.2-1, 2.6.3-1, 2.6.3-1build1, 3.0.3-1, 3.10.1-0ubuntu2, 3.10.1-0ubuntu2.1, 3.11.0-1build2, 3.11.0-1build3, 3.11.0-1build4, 3.11.0-1build6, 3.11.0-1build7, 3.11.0-1build8, 3.11.0-1ubuntu0.22.04.1, 3.11.0-1ubuntu0.24.04.1, 3.2-1, 3.2-1build1, 3.2-1ubuntu0.1~esm1, 3.4.0-1build2, 3.6.1+dfsg1-1, 3.6.1+dfsg1-1ubuntu0.1~esm1, 3.7.1-1.1, 3.7.1-1.1build1, 4.10.1-6, 4.15.3-1, 4.15.3-2, 4.15.5-1, 4.16.0-1, 4.16.0-1build1, 4.17.0-1
Fixed versions
Not specified
CVEs
CVE-2026-96747
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:34 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-96747

core-osv · Original source

Published 24 Sept 2026, 19:17 UTC

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.

osv:UBUNTU-CVE-2026-96747

pymongo

Fixed versions: Not specified

pymongo

Fixed versions: Not specified

pymongo

Fixed versions: Not specified

pymongo

Fixed versions: Not specified

pymongo

Fixed versions: Not specified

pymongo

Fixed versions: Not specified

pymongo

Fixed versions: Not specified

pymongo

Fixed versions: Not specified

Complete source record
{
  "id": "c4bff0a89a89df752c1fb26e1ce4df0b59a32a13a4e99d71555ac14ca701af84",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-96747",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-96747",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-96747",
    "products": [
      {
        "name": {
          "value": "pymongo",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.6-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.6.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.6.3-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.6.3-1build1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymongo",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.3-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.2-1build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.2-1ubuntu0.1~esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymongo",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.4.0-1build2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.6.1+dfsg1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.6.1+dfsg1-1ubuntu0.1~esm1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymongo",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.7.1-1.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.7.1-1.1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.10.1-0ubuntu2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.10.1-0ubuntu2.1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymongo",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.11.0-1build2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.11.0-1build3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.11.0-1build4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.11.0-1ubuntu0.22.04.1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymongo",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.11.0-1build6",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "3.11.0-1build7",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "3.11.0-1build8",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "3.11.0-1ubuntu0.24.04.1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymongo",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.16.0-1build1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "4.17.0-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymongo",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.10.1-6",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "4.15.3-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "4.15.3-2",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "4.15.5-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "4.16.0-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "4.16.0-1build1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-96747",
      "aliases": [
        "UBUNTU-CVE-2026-96747"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N"
        },
        {
          "type": "CVSS_V4",
          "score": "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"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymongo",
            "purl": "pkg:deb/ubuntu/pymongo?arch=source&distro=trusty",
            "ecosystem": "Ubuntu:14.04:LTS"
          },
          "versions": [
            "2.6-1",
            "2.6.2-1",
            "2.6.3-1",
            "2.6.3-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-96747.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-bson",
                "binary_version": "2.6.3-1build1"
              },
              {
                "binary_name": "python-bson-ext",
                "binary_version": "2.6.3-1build1"
              },
              {
                "binary_name": "python-gridfs",
                "binary_version": "2.6.3-1build1"
              },
              {
                "binary_name": "python-pymongo",
                "binary_version": "2.6.3-1build1"
              },
              {
                "binary_name": "python-pymongo-ext",
                "binary_version": "2.6.3-1build1"
              },
              {
                "binary_name": "python3-bson",
                "binary_version": "2.6.3-1build1"
              },
              {
                "binary_name": "python3-bson-ext",
                "binary_version": "2.6.3-1build1"
              },
              {
                "binary_name": "python3-gridfs",
                "binary_version": "2.6.3-1build1"
              },
              {
                "binary_name": "python3-pymongo",
                "binary_version": "2.6.3-1build1"
              },
              {
                "binary_name": "python3-pymongo-ext",
                "binary_version": "2.6.3-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymongo",
            "purl": "pkg:deb/ubuntu/pymongo?arch=source&distro=esm-infra%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "3.0.3-1",
            "3.2-1",
            "3.2-1build1",
            "3.2-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-96747.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-bson",
                "binary_version": "3.2-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python-bson-ext",
                "binary_version": "3.2-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python-gridfs",
                "binary_version": "3.2-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python-pymongo",
                "binary_version": "3.2-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python-pymongo-ext",
                "binary_version": "3.2-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python3-bson",
                "binary_version": "3.2-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python3-bson-ext",
                "binary_version": "3.2-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python3-gridfs",
                "binary_version": "3.2-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python3-pymongo",
                "binary_version": "3.2-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python3-pymongo-ext",
                "binary_version": "3.2-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymongo",
            "purl": "pkg:deb/ubuntu/pymongo?arch=source&distro=esm-infra%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "3.4.0-1build2",
            "3.6.1+dfsg1-1",
            "3.6.1+dfsg1-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-96747.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-bson",
                "binary_version": "3.6.1+dfsg1-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python-bson-ext",
                "binary_version": "3.6.1+dfsg1-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python-gridfs",
                "binary_version": "3.6.1+dfsg1-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python-pymongo",
                "binary_version": "3.6.1+dfsg1-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python-pymongo-ext",
                "binary_version": "3.6.1+dfsg1-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python3-bson",
                "binary_version": "3.6.1+dfsg1-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python3-bson-ext",
                "binary_version": "3.6.1+dfsg1-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python3-gridfs",
                "binary_version": "3.6.1+dfsg1-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python3-pymongo",
                "binary_version": "3.6.1+dfsg1-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "python3-pymongo-ext",
                "binary_version": "3.6.1+dfsg1-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymongo",
            "purl": "pkg:deb/ubuntu/pymongo?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "3.7.1-1.1",
            "3.7.1-1.1build1",
            "3.10.1-0ubuntu2",
            "3.10.1-0ubuntu2.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-96747.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-bson",
                "binary_version": "3.10.1-0ubuntu2.1"
              },
              {
                "binary_name": "python3-bson-ext",
                "binary_version": "3.10.1-0ubuntu2.1"
              },
              {
                "binary_name": "python3-gridfs",
                "binary_version": "3.10.1-0ubuntu2.1"
              },
              {
                "binary_name": "python3-pymongo",
                "binary_version": "3.10.1-0ubuntu2.1"
              },
              {
                "binary_name": "python3-pymongo-ext",
                "binary_version": "3.10.1-0ubuntu2.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymongo",
            "purl": "pkg:deb/ubuntu/pymongo?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "3.11.0-1build2",
            "3.11.0-1build3",
            "3.11.0-1build4",
            "3.11.0-1ubuntu0.22.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-96747.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-bson",
                "binary_version": "3.11.0-1ubuntu0.22.04.1"
              },
              {
                "binary_name": "python3-bson-ext",
                "binary_version": "3.11.0-1ubuntu0.22.04.1"
              },
              {
                "binary_name": "python3-gridfs",
                "binary_version": "3.11.0-1ubuntu0.22.04.1"
              },
              {
                "binary_name": "python3-pymongo",
                "binary_version": "3.11.0-1ubuntu0.22.04.1"
              },
              {
                "binary_name": "python3-pymongo-ext",
                "binary_version": "3.11.0-1ubuntu0.22.04.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymongo",
            "purl": "pkg:deb/ubuntu/pymongo?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3.11.0-1build6",
            "3.11.0-1build7",
            "3.11.0-1build8",
            "3.11.0-1ubuntu0.24.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-96747.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-bson",
                "binary_version": "3.11.0-1ubuntu0.24.04.1"
              },
              {
                "binary_name": "python3-bson-ext",
                "binary_version": "3.11.0-1ubuntu0.24.04.1"
              },
              {
                "binary_name": "python3-gridfs",
                "binary_version": "3.11.0-1ubuntu0.24.04.1"
              },
              {
                "binary_name": "python3-pymongo",
                "binary_version": "3.11.0-1ubuntu0.24.04.1"
              },
              {
                "binary_name": "python3-pymongo-ext",
                "binary_version": "3.11.0-1ubuntu0.24.04.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymongo",
            "purl": "pkg:deb/ubuntu/pymongo?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4.16.0-1build1",
            "4.17.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-96747.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-bson",
                "binary_version": "4.17.0-1"
              },
              {
                "binary_name": "python3-bson-ext",
                "binary_version": "4.17.0-1"
              },
              {
                "binary_name": "python3-gridfs",
                "binary_version": "4.17.0-1"
              },
              {
                "binary_name": "python3-pymongo",
                "binary_version": "4.17.0-1"
              },
              {
                "binary_name": "python3-pymongo-ext",
                "binary_version": "4.17.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymongo",
            "purl": "pkg:deb/ubuntu/pymongo?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "4.10.1-6",
            "4.15.3-1",
            "4.15.3-2",
            "4.15.5-1",
            "4.16.0-1",
            "4.16.0-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-96747.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-bson",
                "binary_version": "4.16.0-1build1"
              },
              {
                "binary_name": "python3-bson-ext",
                "binary_version": "4.16.0-1build1"
              },
              {
                "binary_name": "python3-gridfs",
                "binary_version": "4.16.0-1build1"
              },
              {
                "binary_name": "python3-pymongo",
                "binary_version": "4.16.0-1build1"
              },
              {
                "binary_name": "python3-pymongo-ext",
                "binary_version": "4.16.0-1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:01:20.112545514Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-96747"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-96747",
        "https://www.cve.org/CVERecord?id=CVE-2026-96747"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-96747",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 361734,
  "published_at": "2026-09-24T19:17:00+00:00"
}