CVE-2021-24036
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-24036 is a security vulnerability discovered in Facebook's Folly library and HHVM that involves an integer overflow issue. The vulnerability occurs when passing an attacker-controlled size when creating an IOBuf, which could lead to an out-of-bounds write on the heap with the possibility of remote code execution. This vulnerability affects Folly versions prior to v2021.07.22.00 and 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 (CVE Mitre).

Technical details

The vulnerability stems from insufficient bounds checking in the IOBuf class implementation. When creating an IOBuf with an attacker-controlled size parameter, an integer overflow could occur, leading to an out-of-bounds write on the heap. The fix involved adding additional overflow checks to IOBuf and implementing a maximum size limit (kMaxIOBufSize) set to half of the maximum integer value (GitHub Commit).

Impact

The vulnerability could allow attackers to execute arbitrary code remotely through specially crafted input that triggers the integer overflow condition. This poses a significant risk as it could lead to complete system compromise in affected applications using the vulnerable versions of Folly or HHVM (HHVM Blog).

Exploitability

The vulnerability requires an attacker to be able to control the size parameter when creating an IOBuf object. While specific details about exploits in the wild are not publicly available, the potential for remote code execution makes this a critical security issue (CVE Mitre).

Mitigation and workarounds

Users should upgrade to Folly version v2021.07.22.00 or later, or upgrade HHVM to version 4.80.5, 4.102.2, 4.113.1, 4.114.1, 4.115.1, 4.116.1, 4.117.1, or 4.118.2. For Debian 10 Buster and Ubuntu 18.04 Bionic users, versions 4.80.6 and 4.102.3 are available with updated build system compatibility (HHVM Blog).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-75874CRITICAL10
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74990CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74989CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74988CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74987CRITICAL9.8
  • NixOS logoNixOS
  • MozillaFirefox-branding-upstream
NoYesAug 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management