Memory corruption via ldap_escape length overflow
Published Nov 22, 2024 · Updated Nov 3, 2025
Integer overflow in PHP 8.1.30 and earlier, 8.2.25 and earlier, or 8.3.13 and earlier allows attackers to corrupt memory on 32-bit systems. The php_ldap_do_escape helper adds one or three bytes per input byte to a size_t output-length counter without checking ZSTR_MAX_LEN, so the count wraps and allocation is undersized. Exploitation requires an application to pass an attacker-controlled string of roughly 1.4 GB to the LDAP extension; the established consequence is memory corruption, not demonstrated code execution.
Summary
What happened
Integer overflow in PHP 8.1.30 and earlier, 8.2.25 and earlier, or 8.3.13 and earlier allows attackers to corrupt memory on 32-bit systems. The php_ldap_do_escape helper adds one or three bytes per input byte to a size_t output-length counter without checking ZSTR_MAX_LEN, so the count wraps and allocation is undersized. Exploitation requires an application to pass an attacker-controlled string of roughly 1.4 GB to the LDAP extension; the established consequence is memory corruption, not demonstrated code execution.
The record
- CVE
- CVE-2024-8932
- Published
- Nov 22, 2024
- Updated
- Nov 3, 2025
- Vendor
- The PHP Group
- Product
- PHP
- Classifications
- Unavailable
- Attack vector
- Unavailable
- Privileges
- Unavailable
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.26
- Affected versionversion=8.2.* <8.2.26
- 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
No CVSS assessment is available in this record.
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
No sourced classifications are available.
Public exploit references
No public exploit references are available in this record.
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