CVE-2019-3561CWE-119

Insufficient boundary checks for the strrpos and strripos functions allow access to out-of-bounds memory

published April 29, 2019

CVSS
—
EPSS
2%
Percentile
77.2
In the wild
Unconfirmed
What it is

⚠️ A small oversight in boundary checks opens a door to out-of-bounds memory access! This affects all supported versions of HHVM, including 4.0.3 and earlier. 🔥 Think of this like a restaurant serving dishes that might accidentally include ingredients from an adjacent table—if there's not enough care in portioning, who knows what might end up on your plate? This vulnerability allows memory that should be off-limits to be accessed, similar to tasting someone else's dinner without permission. An attacker could potentially access sensitive memory locations, leading to unpredictable behavior or even crashes in applications that rely on HHVM. While there’s no known exploit just yet, the risks could leave your systems vulnerable and fragile!

Put simply

Think of this like a restaurant serving dishes that might accidentally include ingredients from an adjacent table—if there's not enough care in portioning, who knows what might end up on your plate? This vulnerability allows memory that should be off-limits to be accessed, similar to tasting someone else's dinner without permission. This vulnerability arises from insufficient checks in the strrpos and strripos functions, allowing access to memory outside of the intended boundaries. This could lead to data corruption or other unintended consequences during execution.

What to do

An attacker could potentially access sensitive memory locations, leading to unpredictable behavior or even crashes in applications that rely on HHVM. While there’s no known exploit just yet, the risks could leave your systems vulnerable and fragile! To mitigate this, ensure that you patch HHVM to a secure version, specifically above 4.0.3, 3.30.4, and 3.27.7. Regularly audit your code for proper boundary checks and validate inputs thoroughly! You've got this! By taking these steps, you’ll fortify your application and keep your systems safe. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01711 · 77.2th percentile
Weakness
CWE-119 · Improper Restriction of Operations within the Bounds of a Memory Buffer
Published
2019-04-29T15:32Z
EPSS history
Timeline
  • 29 APR 15:32Z
    Insufficient boundary checks for the strrpos and strripos functions allow access to out-of-bounds memory
    cvelistv5