Am I affected?
CVE-2025-1218
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.
Not in the CISA KEV catalog as of the last sync. That means no confirmed exploitation is listed there, not that it is safe.
Exploit probability (FIRST EPSS): 0.28% chance of exploitation activity in the next 30 days (top 79% of all scored CVEs), scored 2026-11-23. EPSS is a likelihood estimate, not proof of attacks.
Check your PHP version
Fixed versions by branch
| Branch | Affected (php.net) | Fixed in |
|---|---|---|
| PHP 8.5 | PHP 8.5 only, 8.5.0 (including) to 8.5.11 (excluding) | 8.5.11 |
| PHP 8.4 | PHP 8.4 only, 8.4.0 (including) to 8.4.26 (excluding) | 8.4.26 |
| PHP 8.3 | PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding) | 8.3.35 |
| PHP 8.2 | PHP 8.2 only, 8.2.0 (including) to 8.2.34 (excluding) | 8.2.34 |
"Fixed in" is shown only when the source gives an exact upper bound. Any later patch in the same branch also has the fix. Linux distributions (Ubuntu, Debian, RHEL) often backport fixes without changing the PHP version number.
Related CVEs
Other PHP CVEs that NVD lists for the same branches.
- CVE-2026-109618 Critical 9.8 · PHP 8.5, 8.4, 8.3, 8.2 · 2026-10-21
- CVE-2026-17543 Critical 9.8 · PHP 8.5, 8.4, 8.3, 8.2 · 2026-07-30
- CVE-2025-14179 Critical 9.8 · PHP 8.5, 8.4, 8.3, 8.2 · 2026-05-10
- CVE-2026-6722 Critical 9.8 · PHP 8.5, 8.4, 8.3, 8.2 · 2026-05-10
- CVE-2026-7261 Critical 9.8 · PHP 8.5, 8.4, 8.3, 8.2 · 2026-05-10
- CVE-2026-109619 High 8.1 · PHP 8.5, 8.4, 8.3, 8.2 · 2026-10-21
Questions
- Which PHP versions are affected by CVE-2025-1218?
- php.net lists these affected ranges: PHP 8.5 only, 8.5.0 (including) to 8.5.11 (excluding); PHP 8.4 only, 8.4.0 (including) to 8.4.26 (excluding); PHP 8.3 only, 8.3.0 (including) to 8.3.35 (excluding); PHP 8.2 only, 8.2.0 (including) to 8.2.34 (excluding).
- Which PHP version fixes CVE-2025-1218?
- According to php.net, the fix is in PHP 8.5.11, 8.4.26, 8.3.35, 8.2.34 (upgrade to that release or any later patch in the same branch).
- Does a version check prove my server is safe from CVE-2025-1218?
- No. The SAPI, web server, operating system, loaded extensions and configuration change whether a bug can be reached, and Linux distributions often backport fixes without changing the upstream version number.
Sources: CVE-2025-1218 on NIST NVD and the php.net ChangeLog. NVD data synced 2026-11-24T03:47:46.548Z. See all PHP CVEs in the CVE explorer.