CVE-2025-1218: Php5 · The mysqlnd wire protocol parser reads fields out of server packets before checking that the
Affects php5Source GCVE Database
Not known to be exploited · CVSS 3.4 Low · fixed in 7.4.3-4ubuntu2.29+esm4 : update php5 when convenient.
Data as of 27 Oct 2026, 06:42 UTC
- Patch
- Available – fixed in 7.4.3-4ubuntu2.29+esm4, 8.1.2-1ubuntu2.27, 8.3.6-0ubuntu0.24.04.12 +2
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 25 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10php8.5pkg:deb/ubuntu/php8.5?arch=source&distro=stonkingOther threats | Affected
| Fixed in
|
Ubuntu 26.04 LTSphp8.5pkg:deb/ubuntu/php8.5?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSphp8.3pkg:deb/ubuntu/php8.3?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSphp8.1pkg:deb/ubuntu/php8.1?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSphp7.4pkg:deb/ubuntu/php7.4?arch=source&distro=esm-infra/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSphp7.2pkg:deb/ubuntu/php7.2?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2025-1218 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-1218 (opens in a new tab)
- github.com/php/php-src/security/advisories/GHSA-r6x9-5r99-36j7 (opens in a new tab)
- github.com/php/php-src/blob/php-8.4.26/NEWS (opens in a new tab)
- ubuntu.com/security/notices/USN-8936-1 (opens in a new tab)