CVE-2025-1218: Various packet overreads in mysqlnd_writeprotocol.c
Vulnerability summary
CVE-2025-1218 is a medium (CVSS 5.9) Heap-based Buffer Overflow vulnerability in php group php. EPSS estimates a 0.33% chance of exploitation in the next 30 days, higher than 27.6% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 3.4, adjacent network); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 13 · Related 8Timeline
- 25-09-2026PublishedVulnerability first disclosed.
- 28-09-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA3.4LowCVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.33%
Chance of exploitation in the next 30 days
Percentile
28%
Versus all other CVEs
30-day change
Increase +0.04 pp
From 0.28% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundPhp Src
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: adjacent network, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu7 products
- php5All versions (No fix recorded)
- php7.0All versions (No fix recorded)
- php7.2All versions (No fix recorded)
- php7.4All versions (No fix recorded) | < 7.4.3-4ubuntu2.29+esm4
- php8.1All versions (No fix recorded) | < 8.1.2-1ubuntu2.27
Alpine4 products
- php82< 8.2.35-r0
- php83< 8.3.36-r0 | < 8.3.35-r0
- php84< 8.4.27-r0 | < 8.4.26-r0
- php85< 8.5.12-r0 | < 8.5.11-r0
Debian2 products
- php8.2< 8.2.34-1~deb12u1
- php8.4< 8.4.26-1~deb13u1 | < 8.4.26-1
Php1 product
- php≥ 8.2.0, < 8.2.34 | ≥ 8.3.0, < 8.3.35 | ≥ 8.4.0, < 8.4.26 | ≥ 8.5.0, < 8.5.11
Php group1 product
- php≥ 8.2.*, < 8.2.34 | ≥ 8.3.*, < 8.3.35 | ≥ 8.4.*, < 8.4.26 | ≥ 8.5.*, < 8.5.11
5 vendors · 15 products