Vendors › PHP

CVE-2025-1218

Low (3.1) EPSS 0.4% PHP · mysqlnd

Various packet overreads in mysqlnd_writeprotocol.c

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.

Published2026-09-24
Updated2026-09-25
AffectedPHP versions < 8.2.34; PHP versions < 8.3.35; PHP versions < 8.4.26; PHP versions < 8.5.11
FixUpgrade to 8.2.34, 8.3.35, 8.4.26, 8.5.11 (first fixed release per supported branch).
CVEMesh analysisThe vulnerability is a potential crash in the PHP client when a malicious MySQL server sends a packet that is too short, causing the client to read past the end of the packet buffer. Exploitation conditions are not stated in the advisory. The most important action is to upgrade to PHP version 8.2.34, 8.3.35, 8.4.26, or 8.5.11.
AI-generated — see the vendor advisory for the authoritative text.
Vendor advisoryhttps://github.com/php/php-src/security/advisories/GHSA-r6x9-5r99-36j7

CVEs (1)

CVECWETypeImpactLinks
CVE-2025-1218CWE-122OverflowCode ExecutionNVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Same CVE in other advisories

Open in the CVEMesh app Create a free account

Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.

CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.