MySQLnd Wire Protocol Parser Issues in PHP by The PHP Group
CVE-2025-1218
3.4LOW
What is CVE-2025-1218?
The MySQLnd wire protocol parser in PHP improperly handles server packets by reading fields without verifying the packet length. An attacker could exploit a malicious MySQL server to send a truncated packet. This would lead to the client application reading beyond the valid memory range, which could result in instability or process crashes. Proper validation checks for packet size are essential to prevent such vulnerabilities.
Affected Version(s)
PHP 8.2.* < 8.2.34
PHP 8.3.* < 8.3.35
PHP 8.4.* < 8.4.26
References
CVSS V3.1
Score:
3.4
Severity:
LOW
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Adjacent Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Changed
Timeline
Vulnerability published
Vulnerability Reserved
Credit
Nora Dossche
@bao00065 (GitHub)
@cxxz16 (GitHub)
@TristanInSec (GitHub)
@OSTIF-Derek (GitHub)
@HO-9 (GitHub)
Jakub Zelenka
Nora Dossche
Alexandre Daubois
