CVE-2025-1218 Various packet overreads in mysqlnd_writeprotocol.c

Low 3.4 Published Updated

A malicious MySQL server can crash the PHP client by sending truncated packets, causing a buffer overread in the mysqlnd protocol parser.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-1218?

CVE-2025-1218 is a low-severity denial of service vulnerability in Php Php, published on 25 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-122

Which versions are affected by CVE-2025-1218?

3 open source packages ship an affected version, including libphp, php and php-min. It affects 1 product.

PackageAffectedFixed in
libphp BitnamiFrom 8.2.08.2.34, 8.3.35, 8.4.26, 8.5.11
php BitnamiFrom 8.2.08.2.34, 8.3.35, 8.4.26, 8.5.11
php-min BitnamiFrom 8.2.08.2.34, 8.3.35, 8.4.26, 8.5.11

Products include Php Php.

How do I fix CVE-2025-1218?

Upgrade libphp to a fixed version for your release line: 8.2.34, 8.3.35, 8.4.26 or 8.5.11.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-1218 being exploited?

There is no known exploitation of CVE-2025-1218 in the wild and no public exploit code.

All Php Php vulnerabilities

Sources

Also known as AZL-104904, BELL-CVE-2025-1218, BIT-libphp-2025-1218, BIT-php-2025-1218, BIT-php-min-2025-1218, CLEANSTART-2026-UY82629 and 16 more.

Is CVE-2025-1218 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free