CVE-2025-1218: Various packet overreads in mysqlnd_writeprotocol.c
Fixed (Various packet overreads in mysqlnd wire protocol). (CVE-2025-1218)
Other sources
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.
— MITRE
Various packet overreads in mysqlndwriteprotocol.c
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.4.26 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.3.35-1 - Upgrade
Upgrade
alpine/php82to a version that resolves this vulnerability.Fixed in 8.2.35-r0 - Upgrade
Upgrade
alpine/php83to a version that resolves this vulnerability.Fixed in 8.3.36-r0 - Upgrade
Upgrade
alpine/php83to a version that resolves this vulnerability.Fixed in 8.3.35-r0 - Upgrade
Upgrade
alpine/php84to a version that resolves this vulnerability.Fixed in 8.4.27-r0 - Upgrade
Upgrade
alpine/php84to a version that resolves this vulnerability.Fixed in 8.4.26-r0 - Upgrade
Upgrade
alpine/php85to a version that resolves this vulnerability.Fixed in 8.5.12-r0 - Upgrade
Upgrade
alpine/php85to a version that resolves this vulnerability.Fixed in 8.5.11-r0 - Upgrade
Upgrade
bitnami/php-minto a version that resolves this vulnerability.Fixed in 8.2.34 - Upgrade
Upgrade
bitnami/php-minto a version that resolves this vulnerability.Fixed in 8.3.35 - Upgrade
Upgrade
bitnami/php-minto a version that resolves this vulnerability.Fixed in 8.4.26 - Upgrade
Upgrade
bitnami/php-minto a version that resolves this vulnerability.Fixed in 8.5.11 - Upgrade
Upgrade
bitnami/phpto a version that resolves this vulnerability.Fixed in 8.2.34 - Upgrade
Upgrade
bitnami/phpto a version that resolves this vulnerability.Fixed in 8.3.35 - Upgrade
Upgrade
bitnami/phpto a version that resolves this vulnerability.Fixed in 8.4.26 - Upgrade
Upgrade
bitnami/phpto a version that resolves this vulnerability.Fixed in 8.5.11 - Upgrade
Upgrade
bitnami/libphpto a version that resolves this vulnerability.Fixed in 8.2.34 - Upgrade
Upgrade
bitnami/libphpto a version that resolves this vulnerability.Fixed in 8.3.35 - Upgrade
Upgrade
bitnami/libphpto a version that resolves this vulnerability.Fixed in 8.4.26 - Upgrade
Upgrade
bitnami/libphpto a version that resolves this vulnerability.Fixed in 8.5.11 - Upgrade
Upgrade
ubuntu/php7.4to a version that resolves this vulnerability.Fixed in 7.4.3-4ubuntu2.29+esm4 - Upgrade
Upgrade
ubuntu/php8.1to a version that resolves this vulnerability.Fixed in 8.1.2-1ubuntu2.27 - Upgrade
Upgrade
ubuntu/php8.3to a version that resolves this vulnerability.Fixed in 8.3.6-0ubuntu0.24.04.12 - Upgrade
Upgrade
ubuntu/php8.5to a version that resolves this vulnerability.Fixed in 8.5.9-0ubuntu2 - Upgrade
Upgrade
ubuntu/php8.5to a version that resolves this vulnerability.Fixed in 8.5.4-0ubuntu1.4