CVE-2026-88023
JSON

6.1medium

GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB PHP Library

Severity
6.1medium CVSS:4.0 by mongodb
Exploit likelihood
0.41% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mongodb
Also known as
GHSA-8fxw-fmj8-xp7j

Description

Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB PHP Library 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.

Affected

Product or packageVersionsReported by
MongoDB MongoDB PHP Libraryfrom 1.1.0 up to 1.21.4, from 2.0.0 up to 2.4.1CVE List
mongodb/mongodb (Packagist)from 1.1.0 before 1.21.5, from 2.0.0 before 2.4.2GitHub Advisory Database
mongodb php_libraryfrom 1.1.0 before 1.21.5, from 2.0.0 before 2.4.2NVD

All scores

mongodb6.1medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
mongodb8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N

Classification

CWE-943

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB PHP Library 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.

GitHub Advisory Database
Impact

Improper neutralization of special elements in data query logic in the GridFS component of the MongoDB PHP Library 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.

Patches

Fixed in 1.21.5 and 2.4.2.

Workarounds

Validate GridFS IDs.

References

https://jira.mongodb.org/browse/PHPLIB-1929

References

Sources

SourceRecordLicence
CVE ListCVE-2026-88023 changed 2026-09-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-8fxw-fmj8-xp7j changed 2026-11-09CC-BY-4.0
NVDCVE-2026-88023 changed 2026-09-29Public domain