CVE-2021-24036CWE-122

Passing an attacker controlled size when creating an IOBuf could cause integer overflow, leading to an out of bounds write on the heap with the possibility of…

published July 23, 2021

CVSS
—
EPSS
3%
Percentile
88.4
In the wild
Unconfirmed
What it is

⚠️ A simple integer overflow is all it takes to potentially run code on your server! An attacker can pass a controlled size while creating an IOBuf, leading to an out-of-bounds write — yikes! 🚨 Think of it like a restaurant where a waiter accidentally misreads an order and serves a massive dish meant for a large party to a single customer. When there's too much on the plate, it spills over and causes chaos in the kitchen — that's what happens when the IOBuf gets too big and breaches the heap's boundaries! An attacker could exploit this flaw to overwrite critical memory areas, potentially allowing them to execute arbitrary code. This can lead to a complete system compromise, with an intruder able to manipulate the server and its contents as if they owned it! Absolutely devastating!

Put simply

Think of it like a restaurant where a waiter accidentally misreads an order and serves a massive dish meant for a large party to a single customer. When there's too much on the plate, it spills over and causes chaos in the kitchen — that's what happens when the IOBuf gets too big and breaches the heap's boundaries! This vulnerability arises from an integer overflow when an attacker controls the size passed to the IOBuf, leading to an out-of-bounds write on the heap. Specifically, it affects folly versions before 2021.07.22.00 and multiple versions of HHVM, making it a serious concern for users of these libraries.

What to do

An attacker could exploit this flaw to overwrite critical memory areas, potentially allowing them to execute arbitrary code. This can lead to a complete system compromise, with an intruder able to manipulate the server and its contents as if they owned it! Absolutely devastating! To protect yourself, upgrade folly to version v2021.07.22.00 or later and ensure you’re running HHVM version 4.80.5 or higher. It’s crucial to audit your dependencies and check your current installations! You've got this! With these steps, your systems will be safer in no time! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.03284 · 88.4th percentile
Weakness
CWE-122 · Heap-based Buffer Overflow
Published
2021-07-23T00:30Z
EPSS history
Timeline
  • 23 JUL 00:30Z
    Passing an attacker controlled size when creating an IOBuf could cause integer overflow, leading to an out of bounds write on the heap with the possibility of…
    cvelistv5