Various packet overreads in mysqlnd_writeprotocol.c
Summary
| CVE | CVE-2025-1218 |
|---|---|
| State | PUBLISHED |
| Assigner | php |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-09-25 21:17:20 UTC |
| Updated | 2026-09-25 21:17:20 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 3.4 LOW from [email protected]
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
Problem Types: CWE-122 | CWE-122 CWE-122 Heap-based buffer overflow
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 3.4 | LOW | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N |
| 3.1 | CNA | CVSS | 3.4 | LOW | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
AdjacentAttack Complexity
HighPrivileges Required
NoneUser Interaction
NoneScope
ChangedConfidentiality
LowIntegrity
NoneAvailability
NoneCVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/php/php-src/security/advisories/GHSA-r6x9-5r99-36j7 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Nora Dossche (en)
CNA: @bao00065 (GitHub) (en)
CNA: @cxxz16 (GitHub) (en)
CNA: @TristanInSec (GitHub) (en)
CNA: @OSTIF-Derek (GitHub) (en)
CNA: @HO-9 (GitHub) (en)
CNA: Jakub Zelenka (en)
CNA: Nora Dossche (en)
CNA: Alexandre Daubois (en)
There are currently no legacy QID mappings associated with this CVE.