CVE-2025-1218
JSON

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 packageVersionsReported by
ext-mysqlndfrom 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.11CVE List
php phpfrom 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.11NVD
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.11Bitnami 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.11Bitnami 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.11Bitnami Vulnerability Database

All scores

php3.4low CVSS:3.1CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
NVD5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasemedium rating

Classification

CWE-122

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

Sources

SourceRecordLicence
CVE ListCVE-2025-1218 changed 2026-09-28CVE Terms of Use
NVDCVE-2025-1218 changed 2026-10-23Public domain
Bitnami Vulnerability DatabaseBIT-LIBPHP-2025-1218 changed 2026-11-11Apache-2.0
Bitnami Vulnerability DatabaseBIT-PHP-2025-1218 changed 2026-11-11Apache-2.0
Bitnami Vulnerability DatabaseBIT-PHP-MIN-2025-1218 changed 2026-11-11Apache-2.0