GHSA-8fxw-fmj8-xp7j

Suggest an improvement
Source
https://github.com/advisories/GHSA-8fxw-fmj8-xp7j
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-8fxw-fmj8-xp7j/GHSA-8fxw-fmj8-xp7j.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8fxw-fmj8-xp7j
Aliases
Published
2026-10-05T23:26:58Z
Modified
2026-10-05T23:45:08Z
Severity
  • 6.1 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
MongoDB: GridFS data disclosure and deletion via query-operator injection in file IDs
Details

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

Database specific
{
    "cwe_ids":  [],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-05T23:26:58Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

Packagist / mongodb/mongodb

Package

Name
mongodb/mongodb
Purl
pkg:composer/mongodb/mongodb

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.1.0
Fixed
1.24.5

Affected versions

1.*
1.1.0
1.1.1
1.1.2
1.2.0-alpha1
1.2.0
1.3.0
1.3.1
1.3.2
1.4.0
1.4.1
1.4.2
1.4.3
1.5.0
1.5.1
1.5.2
1.6.0
1.6.1
1.7.0-beta1
1.7.0-beta2
1.7.0-rc1
1.7.0
1.7.1
1.7.2
1.8.0-RC1
1.8.0
1.9.0-alpha1
1.9.0
1.10.0
1.10.1
1.11.0
1.12.0
1.13.0-beta1
1.13.0
1.13.1
1.15.0
1.16.0
1.16.1
1.17.0
1.17.1
1.18.0
1.19.0
1.19.1
1.20.0
1.21.0
1.21.1
1.21.2
1.21.3
1.21.4
1.21.5

Database specific

last_known_affected_version_range
"< 1.21.5"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-8fxw-fmj8-xp7j/GHSA-8fxw-fmj8-xp7j.json"

Packagist / mongodb/mongodb

Package

Name
mongodb/mongodb
Purl
pkg:composer/mongodb/mongodb

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.4.2

Affected versions

2.*
2.0.0
2.1.0
2.1.1
2.1.2
2.2.0
2.3.0
2.4.0
2.4.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-8fxw-fmj8-xp7j/GHSA-8fxw-fmj8-xp7j.json"