CWE data temporarily unavailableCWE data is currently experiencing intermittent outages, which may cause incomplete section loading on CVE pages. We are actively working on a fix.

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 HatNVDcve.org
Base Score3.75.93.4
Attack VectorNetworkNetworkAdjacent Network
Attack ComplexityHighHighHigh
Privileges RequiredNoneNoneNone
User InteractionNoneNoneNone
ScopeUnchangedUnchangedChanged
ConfidentialityNoneNoneLow
Integrity ImpactNoneNoneNone
Availability ImpactLowHighNone

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

Want to get errata notifications? Sign up here.