Skip to content
Heist/ feed
Back to feed
High

pymongo — security advisory

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

Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Python Driver can cause a caller-supplied structured file identifier to be interpreted as a query condition rather than as a literal identifier. An authenticated user who can influence the identifier passed by an affected application may obtain stored file content beyond the intended target or cause all GridFS file chunks in the affected bucket to be removed, rendering stored file content unreadable. The affected rename operation may also rename a stored file other than the intended target.

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-88029
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:25 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-88029

core-osv · Original source

Published 10 Sept 2026, 18:18 UTC

Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Python Driver can cause a caller-supplied structured file identifier to be interpreted as a query condition rather than as a literal identifier. An authenticated user who can influence the identifier passed by an affected application may obtain stored file content beyond the intended target or cause all GridFS file chunks in the affected bucket to be removed, rendering stored file content unreadable. The affected rename operation may also rename a stored file other than the intended target.

osv:UBUNTU-CVE-2026-88029

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": "48a6a7d21d7ab04ce34b2f134c24afb251441daad5180c74d784e1e01dccb182",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-88029",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-88029",
    "summary": "Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB Python Driver can cause a caller-supplied structured file identifier to be interpreted as a query condition rather than as a literal identifier. An authenticated user who can influence the identifier passed by an affected application may obtain stored file content beyond the intended target or cause all GridFS file chunks in the affected bucket to be removed, rendering stored file content unreadable. The affected rename operation may also rename a stored file other than the intended target.",
    "evidence": "osv:UBUNTU-CVE-2026-88029",
    "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": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-88029",
      "aliases": [
        "UBUNTU-CVE-2026-88029"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/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-88029.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-88029.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-88029.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-88029.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-88029.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-88029.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-88029.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-88029.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:14.968652689Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-88029"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-88029",
        "https://www.cve.org/CVERecord?id=CVE-2026-88029",
        "https://jira.mongodb.org/browse/PYTHON-5994"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-88029",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 361365,
  "published_at": "2026-09-10T18:18:00+00:00"
}