CVE-2020-1916CWE-122

An incorrect size calculation in ldap_escape may lead to an integer overflow when overly long input is passed in, resulting in an out-of-bounds write

published March 10, 2021

CVSS
—
EPSS
1%
Percentile
72.0
In the wild
Unconfirmed
What it is

⚠️ An incorrect size calculation in ldap_escape could lead to a sneaky integer overflow! Just think of it as taking too many ingredients for a recipe and overflowing the bowl.🍲 Imagine a chef trying to pour a gallon of soup into a pot that can only hold a quart. The result? A messy overflow that causes chaos in the kitchen! This vulnerability works similarly, where overly long input causes data to spill into unintended areas of memory. If an attacker takes advantage of this flaw, it could lead to unexpected behavior or even crash the application. Depending on the circumstances, they might gain access to sensitive information or manipulate the application in harmful ways.

Put simply

Imagine a chef trying to pour a gallon of soup into a pot that can only hold a quart. The result? A messy overflow that causes chaos in the kitchen! This vulnerability works similarly, where overly long input causes data to spill into unintended areas of memory. CVE-2020-1916 arises from an integer overflow due to incorrect size calculations in the ldap_escape function. This flaw allows for out-of-bounds writes, which can lead to memory corruption or application crashes.

What to do

If an attacker takes advantage of this flaw, it could lead to unexpected behavior or even crash the application. Depending on the circumstances, they might gain access to sensitive information or manipulate the application in harmful ways. To protect your systems, upgrade HHVM to version 4.56.2 or later, and avoid using any vulnerable versions listed. Regularly audit your system to ensure you're running the latest updates. 🛡️ You've got this! By following these steps, you'll keep your applications safe and sound! 💪✨

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01384 · 72.0th percentile
Weakness
CWE-122 · Heap-based Buffer Overflow
Published
2021-03-10T15:50Z
EPSS history
Timeline
  • 10 MAR 15:50Z
    An incorrect size calculation in ldap_escape may lead to an integer overflow when overly long input is passed in, resulting in an out-of-bounds write
    cvelistv5