ZeroDay Brief
CVE-2025-1218

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.

CVSS
5.9Medium
Chance of exploitation (EPSS)
0.28%
Published
Sep 25, 2026
In the news
Not yet
Vendor advisory More from this vendor

What to do

A moderate buffer overflow in PHP that can be attacked over the network without logging in. No attacks are reported yet; it can go in your normal patch cycle.

Action: Apply the vendor's update or follow its advisory.

Fixed in: 8.2.34, 8.3.35, 8.4.26, 8.5.11

Affected versions
PHP
8.2.* to before 8.2.34; 8.3.* to before 8.3.35; 8.4.* to before 8.4.26; 8.5.* to before 8.5.11

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.

CWE-122

Affected products

Get alerts for these →

Timeline 20

Latest change: Nessus plugin 370139: RHEL 8 : php:7.4 (RHSA-2026:87080) (Nov 16, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Fri, Sep 25, 2026

  1. CVECVE-2025-1218 published (CVSS 5.9)CVE Program · 21:17 UTC

References 1

  • github.com Vendor AdvisoryExploit /php/php-src/security/advisories/GHSA-r6x9-5r99-36j7

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”