CVE-2021-24036
Facebook folly: Heap-based Buffer Overflow
Check your servers for CVE-2021-24036
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-24036 affects folly, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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 remote code execution. This issue affects versions of folly prior to v2021.07.22.00. This issue affects HHVM versions prior to 4.80.5, all versions between 4.81.0 and 4.102.1, all versions between 4.103.0 and 4.113.0, and versions 4.114.0, 4.115.0, 4.116.0, 4.117.0, 4.118.0 and 4.118.1.
Exploitation
EPSS 3.28%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 88.7% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-122 Heap-based Buffer Overflow
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| folly |
unaffected from v2021.07.22.00, before unspecified affected before v2021.07.22.00
|
| HHVM |
unaffected from 4.118.2, before unspecified affected from 4.118.0, before unspecified unaffected from 4.117.1, before unspecified affected 4.117.0 unaffected from 4.116.1, before unspecified affected 4.116.0 unaffected from 4.115.1, before unspecified affected 4.115.0 unaffected from 4.114.1, before unspecified affected 4.114.0 unaffected from 4.113.1, before unspecified affected 4.113.0 unaffected from 4.102.2, before unspecified affected from 4.102.0, before unspecified affected from 4.81.0, before unspecified unaffected from 4.80.5, before unspecified affected before 4.80.5
|
Is my server affected?
Find the installed version of folly and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i folly
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-24036 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-24036RHEL, Rocky, Alma, Fedora
rpm -q folly
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-24036Alpine
apk list --installed | grep -i follyWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-24036
trivy image --scanners vuln IMAGE | grep CVE-2021-24036
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://hhvm.com/blog/2021/07/20/security-update.html hhvm.com
- https://www.facebook.com/security/advisories/cve-2021-24036 facebook.com
Other references
Source: the record CVE-2021-24036 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse