{"id":"CVE-2025-1218","title":"The mysqlnd wire protocol parser reads fields out of server packets before checking that the packet still holds enough bytes for them","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 …","severity":"low","cvss":3.4,"cvssVector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","cwe":["CWE-122","CWE-125"],"vendor":"PHP Group","product":"ext-mysqlnd","affected":["ext-mysqlnd >= 8.2.* < 8.2.34","ext-mysqlnd >= 8.3.* < 8.3.35","ext-mysqlnd >= 8.4.* < 8.4.26","ext-mysqlnd >= 8.5.* < 8.5.11"],"published":"2026-09-25","updated":"2026-09-25","sourceUpdated":"2026-09-25T21:17:20.993","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-1218","references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-r6x9-5r99-36j7","label":"security@php.net"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-1218.json"},{"url":"https://access.redhat.com/security/cve/CVE-2025-1218"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2541655"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-1218"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1218"},{"url":"https://access.redhat.com/errata/RHSA-2026:70720"}],"tags":["nvd","cve.org","csaf","vex","red-hat"],"ingestedAt":"2026-09-25T21:19:40.139Z","patched":["hardened_images"],"scores":{"nvd":3.4,"vendor":3.7},"slug":"CVE-2025-1218","body":"## Overview\n\nThe 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Vendor advisories\n\n- **RHSA-2026:70720** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-23 · [advisory](https://access.redhat.com/errata/RHSA-2026:70720)\n- **Red Hat VEX** · Low · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, … · updated 2026-09-26 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-1218.json)","depth":"sunlit","depthScore":19,"depthScoreParts":{"impact":18.7,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}