CVE-2025-1218: CWE-122 Heap-based buffer overflow in PHP Group PHP
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.
AI Analysis
Technical Summary
The vulnerability in PHP's mysqlnd wire protocol parser arises from improper bounds checking when reading fields from server packets. Specifically, the parser does not confirm that the packet contains sufficient bytes before reading, allowing a truncated packet from a malicious or compromised MySQL server to trigger a heap-based buffer overflow. This can cause undefined behavior such as process crashes. The CVSS 3.1 score is 3.4 (low severity), reflecting the complexity of attack and limited impact on confidentiality and integrity.
Potential Impact
An attacker controlling or compromising a MySQL server can send malformed truncated packets to a PHP client using mysqlnd, causing the client process to read beyond the packet buffer. This leads to undefined behavior, typically resulting in a crash of the PHP process. There is no indication of confidentiality or integrity compromise, and no known active exploitation has been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid connecting PHP mysqlnd clients to untrusted MySQL servers. Monitor vendor communications for updates and apply patches promptly once released.
CVE-2025-1218: CWE-122 Heap-based buffer overflow in PHP Group PHP
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.
CVSS v3.1
Score 3.4low
Affected software
PHP Group
PHP
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in PHP's mysqlnd wire protocol parser arises from improper bounds checking when reading fields from server packets. Specifically, the parser does not confirm that the packet contains sufficient bytes before reading, allowing a truncated packet from a malicious or compromised MySQL server to trigger a heap-based buffer overflow. This can cause undefined behavior such as process crashes. The CVSS 3.1 score is 3.4 (low severity), reflecting the complexity of attack and limited impact on confidentiality and integrity.
Potential Impact
An attacker controlling or compromising a MySQL server can send malformed truncated packets to a PHP client using mysqlnd, causing the client process to read beyond the packet buffer. This leads to undefined behavior, typically resulting in a crash of the PHP process. There is no indication of confidentiality or integrity compromise, and no known active exploitation has been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid connecting PHP mysqlnd clients to untrusted MySQL servers. Monitor vendor communications for updates and apply patches promptly once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- php
- Date Reserved
- 2025-02-11T04:49:52.603Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ab6e198f7a7c5410648d4d1
Added to database: 09/25/2026, 21:03:20 UTC
Last enriched: 09/25/2026, 21:17:56 UTC
Last updated: 09/26/2026, 04:24:17 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.