CVE-2021-24036 in Facebook Hhvm and 1 more product
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....
Affects 2 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Hhvm | 4.114.0 4.115.0 4.116.0 4.117.0 4.118.0 4.118.1+3 more< 4.80.5 ≥ 4.81.0, ≤ 4.102.1 ≥ 4.103.0, ≤ 4.113.0 | |
| Folly | < 2021.07.22.00 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-24036 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-228090-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2021-07-23 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-122: Heap-Based Buffer Overflow
Buffer overflow corrupting dynamically allocated heap memory, exploitable for arbitrary code execution.
CWE-190: Integer Overflow or Wraparound
Arithmetic operation exceeds the maximum integer value, wrapping around and often leading to undersized allocations.
Related attack patterns (CAPEC)
CAPEC-92 Forced Integer Overflow via CWE-122, CWE-190
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2021-24036 involves an integer overflow vulnerability in the IOBuf creation process, leading to an out-of-bounds write that could enable remote code execution.
An attacker can exploit this vulnerability by passing a maliciously crafted size parameter when creating an IOBuf object, resulting in an integer overflow and subsequent heap corruption.
Questions
What is CVE-2021-24036?
CVE-2021-24036 involves an integer overflow vulnerability in the IOBuf creation process, leading to an out-of-bounds write that could enable remote code execution.
What is the CVSS score for CVE-2021-24036?
CVE-2021-24036 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 3.3%.
Is CVE-2021-24036 actively exploited?
No confirmed active exploitation of CVE-2021-24036 as of 2026-09-25.
How do I remediate CVE-2021-24036?
Priority: IMMEDIATE. Advisory: https://hhvm.com/blog/2021/07/20/security-update.html PSIRT: [email protected]
What systems are affected by CVE-2021-24036?
CVE-2021-24036 affects Facebook Hhvm, Folly.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Facebook","product":"Hhvm","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.