Description
Deserialization of untrusted data in the command monitoring support of the MongoDB PHP Driver can cause class names embedded in document content to be honored when the driver builds monitoring event objects. When an application registers a command monitoring subscriber and includes untrusted data in a database operation, an unauthenticated party who controls that data may cause an application class implementing the driver's persistable interface to be instantiated and its unserialization method invoked with the supplied data. The resulting impact depends on the classes available in the application.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
MongoDB PHP Driver
Default version status: unaffected
0 to < 1.21.10affected2.0.0 to < 2.1.10affected2.2.0 to < 2.5.3affected
References
- https://github.com/mongodb/mongo-php-driver/security/advisories/GHSA-cmvj-vxvq-rh2c ↗
- https://github.com/mongodb/mongo-php-driver/releases/tag/1.21.10 ↗
- https://github.com/mongodb/mongo-php-driver/releases/tag/2.1.10 ↗
- https://github.com/mongodb/mongo-php-driver/releases/tag/2.5.3 ↗
- https://github.com/mongodb/mongo-php-driver/pull/2115 ↗