CVE-2025-1218

Various packet overreads in mysqlnd_writeprotocol.c

Published Sep 25, 2026 CVSS 3.1 · 3.4 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The bug in mysqlnd_writeprotocol.c allows a MySQL server to send a truncated packet that the PHP client parses without first verifying the packet length. This causes undefined behavior and can crash the PHP process. The consequence is a local denial of service, with no evidence of code execution or data exfiltration.

Affected Systems

The affected product is the PHP Group’s PHP implementation, specifically the mysqlnd driver used for MySQL communication. The input does not specify particular PHP releases, so any PHP installation that employs mysqlnd could be vulnerable until a patch is applied.

Risk and Exploitability

With a CVSS score of 3.4 the vulnerability is considered low severity. The EPSS score is not reported and the issue is not listed in the CISA KEV catalog. The attack requires a malicious or compromised MySQL server that can send crafted packets to the PHP client, or an attacker who can manipulate network traffic between the MySQL server and the PHP application. Exploitation results in a crash rather than code execution, but repeated crashes could be used in a denial‑of‑service scenario.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest PHP release that contains the mysqlnd overread fix.
  • If an immediate upgrade is not possible, consider temporarily disabling mysqlnd and using an alternative MySQL driver such as libmysqlclient.
  • Enable network monitoring or packet inspection to detect abnormal truncated packets from MySQL servers and log any resulting process crashes for investigation.

Generated by OpenCVE AI on September 26, 2026 at 01:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4819-1 php8.2 security update
Debian DSA Debian DSA DSA-6514-1 php8.4 security update
Ubuntu USN Ubuntu USN USN-8936-1 PHP vulnerabilities
History
Type Values Removed Values Added
First Time appeared Microsoft
Microsoft windows
Php
Php php
CPEs cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*
Vendors & Products Microsoft
Microsoft windows
Php
Php php
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Php Group
Php Group php
Vendors & Products Php Group
Php Group php
Type Values Removed Values Added
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.
Title Various packet overreads in mysqlnd_writeprotocol.c
Weaknesses CWE-122
References
Metrics cvssV3_1

{'score': 3.4, 'vector': 'CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Sep 28, 2026, 1:31 PM
Reserved
Feb 11, 2025, 4:49 AM
Status
Analyzed
Published
Sep 25, 2026, 9:17 PM
Modified
Oct 23, 2026, 2:55 PM
Severity
Low
Public date
Sep 25, 2026, 8:48 PM