Affected versions
Ubuntu16.04:LTS/php-mongodb
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu18.04:LTS/php-mongodb
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu20.04:LTS/php-mongodb
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/php-mongodb
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu24.04:LTS/php-mongodb
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.04:LTS/php-mongodb
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.10/php-mongodb
- Affected versions
- *
- Fixed version
- Not reported
Description
The BSON encoder in the MongoDB PHP Driver converts a string length to a 32-bit value without validation. When an affected application encodes a string near 4 GiB, the allocation size can wrap while the copy operation uses the original length. The resulting heap buffer overflow can corrupt process memory or terminate the PHP process. Reaching this issue requires a non-default runtime configuration that permits multi-gigabyte values. No MongoDB server interaction is required.

