# CVE-2021-24036: Passing an attacker controlled size when creating an IOBuf could cause integer overflow, leading to an out of bounds write on the heap with…

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.28%, higher than 88% of CVEs (2026-12-01)
- Published: 2021-07-23T00:30:16.000Z
- Modified: 2026-06-17T03:39:11.957Z
- Weaknesses: CWE-122, CWE-190
- Assigned by: facebook

## 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.

(As written by CVE List.)

## Affected

- Facebook folly: from unspecified before v2021.07.22.00; before 2021.07.22.00 (not affected: from v2021.07.22.00 before unspecified)
- Facebook HHVM: from 4.118.0 before unspecified; 4.117.0; 4.116.0; 4.115.0; 4.114.0; 4.113.0; from 4.102.0 before unspecified; from 4.81.0 before unspecified; from unspecified before 4.80.5; before 4.80.5; from 4.81.0 up to 4.102.1; from 4.103.0 up to 4.113.0; and 2 more (not affected: from 4.118.2 before unspecified; from 4.117.1 before unspecified; from 4.116.1 before unspecified; from 4.115.1 before unspecified; from 4.114.1 before unspecified; from 4.113.1 before unspecified; from 4.102.2 before unspecified; from 4.80.5 before unspecified)

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://hhvm.com/blog/2021/07/20/security-update.html> (product, vendor-advisory)
- <https://github.com/facebook/folly/commit/4f304af1411e68851bdd00ef6140e9de4616f7d3> (patch, third-party-advisory)
- <https://www.facebook.com/security/advisories/cve-2021-24036> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-24036](https://www.cve.org/CVERecord?id=CVE-2021-24036), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24036](https://nvd.nist.gov/vuln/detail/CVE-2021-24036), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24036 · Whole record: https://cve.day/CVE-2021-24036.json · Rebuilt by cve.day 2026-11-25T22:58:02.846Z
