Heap-based buffer overflow in Meta folly
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-122 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Meta | folly | before v2021.07.22.00 | v2021.07.22.00 | Patch available | CNA |
| Meta | HHVM | 4.118.0 and later; 4.117.0; 4.116.0; 4.115.0; 4.114.0; 4.113.0; 4.102.0 and later; 4.81.0 and later; before 4.80.5 | 4.118.2, 4.117.1, 4.116.1, 4.115.1, 4.114.1, 4.113.1, 4.102.2, 4.80.5 | Patch available | CNA |
- folly VendorMeta Affected before v2021.07.22.00 Fixed in v2021.07.22.00 Patch available CNA
- HHVM VendorMeta Affected 4.118.0 and later; 4.117.0; 4.116.0; 4.115.0; 4.114.0; 4.113.0; 4.102.0 and later; 4.81.0 and later; before 4.80.5 Fixed in 4.118.2, 4.117.1, 4.116.1, 4.115.1, 4.114.1, 4.113.1, 4.102.2, 4.80.5 Patch available CNA
CPE configurations NVD · 8
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:facebook:folly:*:*:*:*:*:*:*:* | before 2021.07.22.00 | Vulnerable | Meta |
| cpe:2.3:a:facebook:hhvm:*:*:*:*:*:*:*:* | before 4.80.5; 4.81.0 – 4.102.1; 4.103.0 – 4.113.0 | Vulnerable | Meta |
| cpe:2.3:a:facebook:hhvm:4.114.0:*:*:*:*:*:*:* | 4.114.0 | Vulnerable | Meta |
| cpe:2.3:a:facebook:hhvm:4.115.0:*:*:*:*:*:*:* | 4.115.0 | Vulnerable | Meta |
| cpe:2.3:a:facebook:hhvm:4.116.0:*:*:*:*:*:*:* | 4.116.0 | Vulnerable | Meta |
| cpe:2.3:a:facebook:hhvm:4.117.0:*:*:*:*:*:*:* | 4.117.0 | Vulnerable | Meta |
| cpe:2.3:a:facebook:hhvm:4.118.0:*:*:*:*:*:*:* | 4.118.0 | Vulnerable | Meta |
| cpe:2.3:a:facebook:hhvm:4.118.1:*:*:*:*:*:*:* | 4.118.1 | Vulnerable | Meta |
- cpe:2.3:a:facebook:folly:*:*:*:*:*:*:*:* Versions before 2021.07.22.00 Vulnerable ·Meta
- cpe:2.3:a:facebook:hhvm:*:*:*:*:*:*:*:* Versions before 4.80.5; 4.81.0 – 4.102.1; 4.103.0 – 4.113.0 Vulnerable ·Meta
- cpe:2.3:a:facebook:hhvm:4.114.0:*:*:*:*:*:*:* Versions 4.114.0 Vulnerable ·Meta
- cpe:2.3:a:facebook:hhvm:4.115.0:*:*:*:*:*:*:* Versions 4.115.0 Vulnerable ·Meta
- cpe:2.3:a:facebook:hhvm:4.116.0:*:*:*:*:*:*:* Versions 4.116.0 Vulnerable ·Meta
- cpe:2.3:a:facebook:hhvm:4.117.0:*:*:*:*:*:*:* Versions 4.117.0 Vulnerable ·Meta
- cpe:2.3:a:facebook:hhvm:4.118.0:*:*:*:*:*:*:* Versions 4.118.0 Vulnerable ·Meta
- cpe:2.3:a:facebook:hhvm:4.118.1:*:*:*:*:*:*:* Versions 4.118.1 Vulnerable ·Meta
Remediation
- Fix · CNA folly (Facebook) Fixed in v2021.07.22.00
- Fix · CNA HHVM (Facebook) Fixed in 4.118.2, 4.117.1, 4.116.1, 4.115.1, 4.114.1, 4.113.1, 4.102.2, 4.80.5
Timeline
- 2026-10-02 Threatist record created from CVE-2021-24036
- 2026-10-03 Alias added: GHSA-67g7-384p-p2gv
References
More Meta Folly vulnerabilities
- TI-2019-08939 Out-of-bounds read in Meta folly CVSS 3.1CRITICAL 9.8
- TI-2018-04662 Memory corruption in Meta HHVM CVSS 3.1HIGH 7.5
Sources
- CVE-2021-24036 · CVE Program
- CVE-2021-24036 · NVD
- FIRST EPSS
- GHSA-67g7-384p-p2gv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences