{"id":"CVE-2026-88029","aliases":["CVE-2026-88029","GHSA-8fvv-fgr5-f8ch","PYSEC-2026-4294"],"related":[],"kind":"vulnerability","state":"published","title":"GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Python Driver","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWhen reading/writing via an ID with the GridFS API, require an exact match on the given ID. Otherwise, if a Hash is given in place of the ID, it may be interpreted as criteria, overriding the ID match.\n\n### Patches\nPatch available in pymongo >= 4.18.1\n\n### Workarounds\nEnsure your existing workflow _only_ supports exact matching on the GridFS API.","format":"markdown","source":"ghsa"}],"published":"2026-09-10T17:56:25.421Z","modified":"2026-10-15T14:55:35.220Z","severity":{"scorer":"mongodb","scheme":"CVSS:4.0","vector":"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","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"mongodb","scheme":"CVSS:4.0","vector":"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","score":6.1,"rating":"MEDIUM"},{"scorer":"mongodb","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","score":8.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-943"],"affected":[{"ranges":[{"type":"semver","introduced":"1.6.0","fixed":"4.18.1","status":"affected"}],"vendor":"MongoDB","product":"Python Driver","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.18.1"}],"ecosystem":"PyPI","package":"pymongo","purl":"pkg:pypi/pymongo","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.6","fixed":"4.18.1"}],"vendor":"mongodb","product":"python_driver","cpe":"cpe:2.3:a:mongodb:python_driver:*:*:*:*:*:mongodb:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.18.1"}],"ecosystem":"PyPI","package":"pymongo","purl":"pkg:pypi/pymongo","source":"pysec"}],"references":[{"url":"https://jira.mongodb.org/browse/PYTHON-5994","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mongodb/mongo-python-driver/security/advisories/GHSA-8fvv-fgr5-f8ch","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-88029","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mongodb/mongo-python-driver/pull/3046","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mongodb/mongo-python-driver/commit/3ef1c607859589a0086446ad6f557791a2813681","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mongodb/mongo-python-driver/commit/fa676586ba4b399168a4d1d41c30dc2166cc44fd","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mongodb/mongo-python-driver","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mongodb/mongo-python-driver/releases/tag/4.18.1","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://jira.mongodb.org/browse/PYTHON-5992","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pymongo","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-8fvv-fgr5-f8ch","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mongodb","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-10T18:24:57.437Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-88029","url":"https://www.cve.org/CVERecord?id=CVE-2026-88029","licence":"CVE Terms of Use","modified":"2026-09-10T18:25:06.926Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8fvv-fgr5-f8ch","url":"https://github.com/advisories/GHSA-8fvv-fgr5-f8ch","licence":"CC-BY-4.0","modified":"2026-10-15T14:55:35.220Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-88029","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-88029","licence":"Public domain","modified":"2026-09-29T16:06:45.320Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4294","url":"https://osv.dev/vulnerability/PYSEC-2026-4294","licence":"CC-BY-4.0","modified":"2026-10-15T14:45:14.303Z"}],"updatedAt":"2026-11-25T22:59:37.884Z","epss":{"score":0.00265,"percentile":0.19645,"date":"2026-12-01T12:00:22.000Z"}}