3.4low
Various packet overreads in mysqlnd_writeprotocol.c
- Severity
- 3.4low CVSS:3.1 by php
- Exploit likelihood
- 0.33% (higher than 27% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- php
- Also known as
- BIT-LIBPHP-2025-1218BIT-PHP-2025-1218BIT-PHP-MIN-2025-1218GHSA-r6x9-5r99-36j7
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
| Product or package | Versions | Reported by |
|---|---|---|
| ext-mysqlnd | from 8.2.* before 8.2.34, from 8.3.* before 8.3.35, from 8.4.* before 8.4.26, from 8.5.* before 8.5.11 | CVE List |
| php php | from 8.2.0 before 8.2.34, from 8.3.0 before 8.3.35, from 8.4.0 before 8.4.26, from 8.5.0 before 8.5.11 | NVD |
| libphp (Bitnami) | from 8.2.0 before 8.2.34, from 8.3.0 before 8.3.35, from 8.4.0 before 8.4.26, from 8.5.0 before 8.5.11 | Bitnami Vulnerability Database |
| php (Bitnami) | from 8.2.0 before 8.2.34, from 8.3.0 before 8.3.35, from 8.4.0 before 8.4.26, from 8.5.0 before 8.5.11 | Bitnami Vulnerability Database |
| php-min (Bitnami) | from 8.2.0 before 8.2.34, from 8.3.0 before 8.3.35, from 8.4.0 before 8.4.26, from 8.5.0 before 8.5.11 | Bitnami Vulnerability Database |
All scores
| php | 3.4low CVSS:3.1 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N |
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
El analizador del protocolo de conexión de mysqlnd lee campos de los paquetes del servidor antes de verificar que el paquete aún contiene suficientes bytes para ellos. Un servidor MySQL malicioso o comprometido puede enviar un paquete truncado y hacer que el cliente lea más allá del final del búfer del paquete, lo que es un comportamiento indefinido y puede provocar la caída del proceso.
References
| https://github.com/php/php-src/security/advisories/GHSA-r6x9-5r99-36j7 | advisory, exploit, vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-1218 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-1218 changed 2026-09-28 | CVE Terms of Use |
| NVD | CVE-2025-1218 changed 2026-10-23 | Public domain |
| Bitnami Vulnerability Database | BIT-LIBPHP-2025-1218 changed 2026-11-11 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PHP-2025-1218 changed 2026-11-11 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PHP-MIN-2025-1218 changed 2026-11-11 | Apache-2.0 |