Cross-user heap disclosure via crafted MySQL field packet
Published Nov 22, 2024 · Updated Nov 3, 2025
Heap buffer over-read in mysqlnd in The PHP Group PHP allows remote authenticated users to disclose heap data through a hostile MySQL server. php_mysqlnd_rset_field_read trusts an attacker-controlled field length and copies that many bytes from the command buffer without rechecking the remaining input. Exploitation requires control of the MySQL target or script execution in a persistent PHP-FPM worker pool and exposes prior SQL responses or adjacent heap content.
Summary
What happened
Heap buffer over-read in mysqlnd in The PHP Group PHP allows remote authenticated users to disclose heap data through a hostile MySQL server. php_mysqlnd_rset_field_read trusts an attacker-controlled field length and copies that many bytes from the command buffer without rechecking the remaining input. Exploitation requires control of the MySQL target or script execution in a persistent PHP-FPM worker pool and exposes prior SQL responses or adjacent heap content.
The record
- CVE
- CVE-2024-8929
- Published
- Nov 22, 2024
- Updated
- Nov 3, 2025
- Vendor
- The PHP Group
- Product
- PHP
- Classifications
- CWE-200, CWE-488, CWE-244, CWE-125, CWE-126
- Attack vector
- adjacent
- Privileges
- authenticated
Timeline
How it unfolded
- Nov 22, 2024CVE publishedPublication date reported by the CVE source.
- Nov 3, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=8.1.0 <8.1.31
- Affected versionversion=8.1.* <8.1.31
- Affected versionversion=8.2.0 <8.2.24
- Affected versionversion=8.2.* <8.2.24
- Affected versionversion=8.3.0 <8.3.14
- Affected versionversion=8.3.* <8.3.14
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Upstream crafted MySQL server proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo