{"id":"UBUNTU-CVE-2026-106432","details":"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.","modified":"2026-11-24T14:55:03.720821515Z","published":"2026-10-08T20:17:00Z","upstream":["CVE-2026-106432"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-106432"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-106432"},{"type":"REPORT","url":"https://jira.mongodb.org/browse/PHPC-2741"}],"affected":[{"package":{"name":"php-mongodb","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/php-mongodb?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.2-2~ubuntu1","1.1.5-1~build1"],"ecosystem_specific":{"binaries":[{"binary_name":"php-mongodb","binary_version":"1.1.5-1~build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106432.json"}},{"package":{"name":"php-mongodb","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/php-mongodb?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.3-1build1","1.3.4-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"php-mongodb","binary_version":"1.3.4-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106432.json"}},{"package":{"name":"php-mongodb","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/php-mongodb?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.5-1build1","1.6.1-4","1.6.1-4build1"],"ecosystem_specific":{"binaries":[{"binary_name":"php-mongodb","binary_version":"1.6.1-4build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106432.json"}},{"package":{"name":"php-mongodb","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/php-mongodb?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.0+1.7.5-2build2","1.11.1+1.9.2+1.7.5-4","1.12.0+1.9.2+1.7.5-3","1.12.0+1.9.2+1.7.5-4"],"ecosystem_specific":{"binaries":[{"binary_name":"php-mongodb","binary_version":"1.12.0+1.9.2+1.7.5-4"},{"binary_name":"php8.1-mongodb","binary_version":"1.12.0+1.9.2+1.7.5-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106432.json"}},{"package":{"name":"php-mongodb","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/php-mongodb?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.15.0+1.11.1+1.9.2+1.7.5-1build1","1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu1","1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu2","1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3"],"ecosystem_specific":{"binaries":[{"binary_version":"1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3","binary_name":"php-mongodb"},{"binary_name":"php8.3-mongodb","binary_version":"1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106432.json"}},{"package":{"name":"php-mongodb","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/php-mongodb?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.7-0ubuntu1","2.1.7-0ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"php-mongodb","binary_version":"2.1.7-0ubuntu2"},{"binary_name":"php8.5-mongodb","binary_version":"2.1.7-0ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106432.json"}},{"package":{"name":"php-mongodb","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/php-mongodb?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.0-1","2.1.7-0ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1.7-0ubuntu1","binary_name":"php-mongodb"},{"binary_version":"2.1.7-0ubuntu1","binary_name":"php8.5-mongodb"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106432.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L","source":"CNA"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","source":"NVD"},{"type":"CVSS_V4","score":"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","source":"CNA"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}