Skip to content
3.4 Low

CVE-2025-1218 The mysqlnd wire protocol parser reads fields out of server packets before checking that the packet still holds enough…

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.

Affected products and versions

Product Affected versions Fixed in
PHP 8.5 earliest → < 8.5.11 8.5.11
PHP 8.4 earliest → < 8.4.26 8.4.26
PHP 8.3 earliest → < 8.3.35 8.3.35
PHP 8.2 earliest → < 8.2.34 8.2.34

References

Timeline

  1. Published
  2. Last modified
The 103 CVEs of PHP →
Track this CVE