CVE-2025-1218: The mysqlnd wire protocol parser reads fields out of server packets before checking that the packet still hold
CVE-2025-1218 is a low-severity flaw (CVSS 3.4) affecting php. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Public exploit reference
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 3.4 (Low) |
| Attack vector | Adjacent network |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.2% (top 93%) |
| CISA exploited list | No |
| Weakness | CWE-122 |
| Published | 2026-09-25 |
| Last modified | 2026-10-23 |
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Advisories and coverage
Official advisories
- Amazon Linux 2023 ALAS: ALAS2023-2026-3161 (important): php8.2 2026-10-12
- Amazon Linux 2023 ALAS: ALAS2023-2026-3162 (important): php8.3 2026-10-12
- Amazon Linux 2023 ALAS: ALAS2023-2026-3163 (important): php8.4 2026-10-12
- Amazon Linux 2023 ALAS: ALAS2023-2026-3164 (important): php8.5 2026-10-12
- Amazon Linux 2 ALAS: ALAS2PHP8.2-2026-014 (important): php 2026-10-12
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-1218?
php: upgrade to 8.2.34, 8.3.35, 8.4.26, 8.5.11. Exact commands for each OS are on this page.
Is CVE-2025-1218 being exploited?
CVE-2025-1218 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-1218 affect?
CVE-2025-1218 affects php. Severity is low (CVSS 3.4). 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
How urgent is CVE-2025-1218?
Priority 24/100. Public exploit reference; On your watchlist
Related CVEs
- CVE-2026-17544 CRITICAL 9.8 UPGRADE Attacker-provided inputs to bccomp() could lead to an out-of-bounds write with stack and heap corruption in PH
- CVE-2026-17543 CRITICAL 9.8 UPGRADE Improper escaping of backslashes in attacker-provided parameters would allow for trivial SQL injection in PHP
- CVE-2026-7260 MEDIUM 5.5 UPGRADE Circular symbolic links in phar archives could lead to unbounded recursion, exhausting the C stack and crashin
- CVE-2026-109618 CRITICAL 9.8 UPGRADE MITIGATE PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the reques
- CVE-2026-109619 HIGH 8.1 UPGRADE MITIGATE PHP has various global state that temporarily points into request memory