GHSA-8fxw-fmj8-xp7j: Composer/mongodb/mongodb vulnerability

Published Oct 5, 2026
·
Updated

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

Affected Software

2 affected componentsFixes available
composer/mongodb/mongodb>=2.0.0<2.4.2
2.4.2
composer/mongodb/mongodb>=1.1.0<1.21.5
1.24.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/mongodb/mongodb to a version that resolves this vulnerability.

    Fixed in 2.4.2
  2. Upgrade

    Upgrade composer/mongodb/mongodb to a version that resolves this vulnerability.

    Fixed in 1.24.5
  3. Upgrade

    Upgrade MongoDB PHP Library to a version that resolves this vulnerability.

    Fixed in 1.21.5
  4. Upgrade

    Upgrade MongoDB PHP Library to a version that resolves this vulnerability.

    Fixed in 2.4.2
  5. Configuration

    Validate GridFS IDs before using caller-supplied structured file identifiers.

    GridFS GridFS ID validation = enabled

Event History

Oct 5, 2026
Advisory Published
via GitHub·11:26 PM
Data Sourced
via GitHub·11:26 PM
DescriptionAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203