CVE-2025-1218

MEDIUMCVSS 5.9/10EPSS 0.18%

Last modified

CVE-2025-1218 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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.. EPSS estimates a 0.18% chance of exploitation in the next 30 days.

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.

Metrics

EPSS Probability
0.18%

7.4th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PhpPhp>= 8.2.0, < 8.2.34
PhpPhp>= 8.3.0, < 8.3.35
PhpPhp>= 8.4.0, < 8.4.26
PhpPhp>= 8.5.0, < 8.5.11

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is 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.
How severe is CVE-2025-1218?
CVE-2025-1218 has a CVSS score of 5.9/10 (MEDIUM severity). The EPSS model estimates a 0.18% probability of exploitation in the next 30 days.
How do I fix CVE-2025-1218?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2025

Are you affected by CVE-2025-1218?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST