CVE-2025-1218

Various packet overreads in mysqlnd_writeprotocol.c

State
Published
Severity
3.4 Low
Published
Sep 25, 2026
Updated
Sep 28, 2026
Reserved
Feb 11, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.13.4 LowCVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:Nphp

Weaknesses

Affected Products

ProductVersions
PHPPHP Group
  • 8.2.* to before 8.2.34Affected
  • 8.3.* to before 8.3.35Affected
  • 8.4.* to before 8.4.26Affected
  • 8.5.* to before 8.5.11Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.