CVE-2025-1218
Description
A flaw was found in PHP. The MySQL Native Driver (mysqlnd) wire protocol parser fails to verify that an incoming packet contains enough bytes before reading its fields. A malicious or compromised database server can send a truncated packet, causing the client application to read past the buffer boundary. This issue can lead to a process crash, resulting in a Denial of Service (DoS), or potentially leak sensitive memory.
Statement
This issue is rated Low for Red Hat customers because exploitation requires a PHP application using mysqlnd to communicate with a malicious or compromised MySQL server, and the practical impact is an out-of-bounds read that primarily crashes the client process. Confidentiality and integrity impact are not established for Red Hat product use. Applications that connect only to trusted database servers are not practically exposed.
Mitigation
Restrict PHP applications to trusted MySQL/MariaDB servers and isolate database networks. Prefer authenticated, TLS-protected database connections and avoid exposing database endpoints to untrusted networks.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 3.7 | 5.9 | 3.4 |
| Attack Vector | Network | Network | Adjacent Network |
| Attack Complexity | High | High | High |
| Privileges Required | None | None | None |
| User Interaction | None | None | None |
| Scope | Unchanged | Unchanged | Changed |
| Confidentiality | None | None | Low |
| Integrity Impact | None | None | None |
| Availability Impact | Low | High | None |
Vector
Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
cve.org: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.