Skip to content
Heist/ feed
Back to feed
High

php-mongodb — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-106432

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.

Products
php-mongodb
Affected versions
1.1.2-2~ubuntu1, 1.1.5-1~build1, 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, 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, 1.2.3-1build1, 1.3.4-1build1, 1.5.5-1build1, 1.6.1-4, 1.6.1-4build1, 1.9.0+1.7.5-2build2, 2.1.0-1, 2.1.7-0ubuntu1, 2.1.7-0ubuntu2
Fixed versions
Not specified
CVEs
CVE-2026-106432
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:58 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-106432

core-osv · Original source

Published 8 Oct 2026, 20:17 UTC

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.

osv:UBUNTU-CVE-2026-106432

php-mongodb

Fixed versions: Not specified

php-mongodb

Fixed versions: Not specified

php-mongodb

Fixed versions: Not specified

php-mongodb

Fixed versions: Not specified

php-mongodb

Fixed versions: Not specified

php-mongodb

Fixed versions: Not specified

php-mongodb

Fixed versions: Not specified

Complete source record
{
  "id": "c752ef093f538f915cbc5bea546762978fed1bf3fc293e0771bfd15eb5a2a862",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-106432",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-106432",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-106432",
    "products": [
      {
        "name": {
          "value": "php-mongodb",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.2-2~ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.1.5-1~build1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "php-mongodb",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.3-1build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.3.4-1build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "php-mongodb",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.5-1build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.6.1-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.6.1-4build1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "php-mongodb",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9.0+1.7.5-2build2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.11.1+1.9.2+1.7.5-4",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.12.0+1.9.2+1.7.5-3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.12.0+1.9.2+1.7.5-4",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "php-mongodb",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.15.0+1.11.1+1.9.2+1.7.5-1build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "php-mongodb",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.1.7-0ubuntu1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.1.7-0ubuntu2",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "php-mongodb",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.1.0-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "2.1.7-0ubuntu1",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-106432",
      "aliases": [
        "UBUNTU-CVE-2026-106432"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H"
        },
        {
          "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"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "php-mongodb",
            "purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.1.2-2~ubuntu1",
            "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"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-mongodb",
                "binary_version": "1.1.5-1~build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "php-mongodb",
            "purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.2.3-1build1",
            "1.3.4-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106432.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-mongodb",
                "binary_version": "1.3.4-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "php-mongodb",
            "purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.5.5-1build1",
            "1.6.1-4",
            "1.6.1-4build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106432.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-mongodb",
                "binary_version": "1.6.1-4build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "php-mongodb",
            "purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106432.json"
          },
          "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"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "php-mongodb",
            "purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106432.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-mongodb",
                "binary_version": "1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3"
              },
              {
                "binary_name": "php8.3-mongodb",
                "binary_version": "1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "php-mongodb",
            "purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.1.7-0ubuntu1",
            "2.1.7-0ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106432.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-mongodb",
                "binary_version": "2.1.7-0ubuntu2"
              },
              {
                "binary_name": "php8.5-mongodb",
                "binary_version": "2.1.7-0ubuntu2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "php-mongodb",
            "purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.1.0-1",
            "2.1.7-0ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106432.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-mongodb",
                "binary_version": "2.1.7-0ubuntu1"
              },
              {
                "binary_name": "php8.5-mongodb",
                "binary_version": "2.1.7-0ubuntu1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:00.081815813Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-106432"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-106432",
        "https://www.cve.org/CVERecord?id=CVE-2026-106432",
        "https://jira.mongodb.org/browse/PHPC-2741"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-106432",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 357838,
  "published_at": "2026-10-08T20:17:00+00:00"
}