Skip to content
Heist/ feed
Back to feed
MediumFix available

Various packet overreads in mysqlnd_writeprotocol.c

Type: advisorySources: OSV

The mysqlnd wire protocol parser reads fields out of server packets before checking that the packet still holds enough bytes for them. A malicious or compromised MySQL server can send a truncated packet and make the client read past the end of the packet buffer, which is undefined behaviour and can crash the process.

Products
libphp
Affected versions
Not specified
Fixed versions
8.2.34, 8.3.35, 8.4.26, 8.5.11
CVEs
CVE-2025-1218
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 10:30 UTC · Revision 2

Source evidence

Various packet overreads in mysqlnd_writeprotocol.c

core-osv · Original source

Published 1 Oct 2026, 09:28 UTC

The mysqlnd wire protocol parser reads fields out of server packets before checking that the packet still holds enough bytes for them. A malicious or compromised MySQL server can send a truncated packet and make the client read past the end of the packet buffer, which is undefined behaviour and can crash the process.

osv:BIT-libphp-2025-1218

libphp

Fixed versions: 8.2.34, 8.3.35, 8.4.26, 8.5.11

Complete source record
{
  "id": "50d10f08257e03d5e961eaaeeaaf4a5cc395ddd248bb611646049c9af9a197e4",
  "url": "https://osv.dev/vulnerability/BIT-libphp-2025-1218",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Various packet overreads in mysqlnd_writeprotocol.c",
    "summary": "The mysqlnd wire protocol parser reads fields out of server packets before checking that the packet still holds enough bytes for them. A malicious or compromised MySQL server can send a truncated packet and make the client read past the end of the packet buffer, which is undefined behaviour and can crash the process.",
    "evidence": "osv:BIT-libphp-2025-1218",
    "products": [
      {
        "name": {
          "value": "libphp",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "8.2.34",
            "evidence": "/affected/0/ranges"
          },
          {
            "value": "8.3.35",
            "evidence": "/affected/0/ranges"
          },
          {
            "value": "8.4.26",
            "evidence": "/affected/0/ranges"
          },
          {
            "value": "8.5.11",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "BIT-libphp-2025-1218",
      "aliases": [
        "BIT-libphp-2025-1218",
        "BIT-php-2025-1218",
        "BIT-php-min-2025-1218",
        "CVE-2025-1218"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "8.2.0"
                },
                {
                  "fixed": "8.2.34"
                },
                {
                  "introduced": "8.3.0"
                },
                {
                  "fixed": "8.3.35"
                },
                {
                  "introduced": "8.4.0"
                },
                {
                  "fixed": "8.4.26"
                },
                {
                  "introduced": "8.5.0"
                },
                {
                  "fixed": "8.5.11"
                }
              ]
            }
          ],
          "package": {
            "name": "libphp",
            "purl": "pkg:bitnami/libphp",
            "ecosystem": "Bitnami"
          },
          "severity": [
            {
              "type": "CVSS_V3",
              "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
            }
          ],
          "database_specific": {
            "source": "https://github.com/bitnami/vulndb/tree/main/data/libphp/BIT-libphp-2025-1218.json"
          }
        }
      ],
      "modified": "2026-10-26T08:45:06.892676968Z",
      "provider": "osv",
      "references": [
        "https://github.com/php/php-src/security/advisories/GHSA-r6x9-5r99-36j7",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-1218"
      ],
      "provider_metadata": {
        "cpes": [
          "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"
        ],
        "severity": "Medium"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-1218",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 446443,
  "published_at": "2026-10-01T09:28:51.921+00:00"
}