Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver (MongoDB PHP Driver)
En bref
- Source
- NVD
- EPSS
- EPSS 0.17 % · centile 6 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- mongodb
- Statut NVD
- Analyzed
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.
Faiblesses (CWE)
- CWE-681 — Incorrect Conversion between Numeric Types
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 4.0 | LOW 2.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N | mongodb |
| CVSS 3.1 | LOW 3.6 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L | mongodb |
| CVSS 4.0 | LOW 2.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | NVD · cna@mongodb.com (Secondary) |
| CVSS 3.1 | LOW 3.6 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L | NVD · cna@mongodb.com (Secondary) |
| CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H | NVD · nvd@nist.gov (Primary) |
Références européennes
- ENISA EUVD · EUVD-2026-95234
- GCVE · GCVE-0-2026-106432
Configurations affectées (CPE NVD)
cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:mongodb:*:*≥ 1.3.0 < 1.21.1cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:mongodb:*:*≥ 2.0.0 < 2.1.11cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:mongodb:*:*≥ 2.2.0 < 2.5.4
Produits affectés
| Produit | Versions |
|---|---|
| MongoDB · PHP Driver | affected 1.16.0 < 1.21.11 ; affected 2.0.0 < 2.1.11 ; affected 2.2.0 < 2.5.4 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |