CVE-2024-8932CWE-787

OOB access in ldap_escape

Critical · published November 22, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
69.7
In the wild
Unconfirmed
What it is

🚨 An integer overflow lurking in the shadows! In PHP versions 8.1.* (before 8.1.31) and others, a long string can cause chaos with the ldap_escape() function. 🔥 Think of it as a restaurant where a chef keeps accepting larger and larger ingredient orders without checking the capacity of the kitchen — when the input exceeds the limits, things start spilling over and creating a mess! An attacker could trigger this overflow, leading to an out-of-bounds write. This means they might be able to manipulate memory, potentially executing arbitrary code or crashing the system. The consequences could be absolutely devastating if exploited!

Put simply

Think of it as a restaurant where a chef keeps accepting larger and larger ingredient orders without checking the capacity of the kitchen — when the input exceeds the limits, things start spilling over and creating a mess! This vulnerability arises due to uncontrolled long string inputs into the ldap_escape() function on 32-bit systems, which can overflow integers and allow for dangerous out-of-bounds memory writes.

What to do

An attacker could trigger this overflow, leading to an out-of-bounds write. This means they might be able to manipulate memory, potentially executing arbitrary code or crashing the system. The consequences could be absolutely devastating if exploited! Update your PHP installations to versions 8.1.31, 8.2.26, or 8.3.14 immediately to close this critical gap. Regularly audit your use of functions like ldap_escape() to ensure proper input validation and restrictions are in place. You’ve got this! Secure your PHP environment and become a security hero! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01275 · 69.7th percentile
Weakness
CWE-787 · Out-of-bounds Write
Published
2024-11-22T06:03Z
EPSS history
Timeline
  • 22 NOV 06:03Z
    OOB access in ldap_escape
    cvelistv5