SecurityContext

CVE-2021-24036: folly - Integer Overflow

  • Cve: CVE-2021-24036
  • Name: folly - Integer Overflow
  • 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.
  • Impact: Attackers can cause out of bounds write leading to remote code execution on affected systems.
  • Remediation: Update to folly v2021.07.22.00 or later.
  • Vulnerability type: integer_overflow
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.03284
  • Epss percentile: 0.88679
  • Assignee: [email protected]
  • Published at: 2021-07-23T01:15:07Z
  • Age in days: 1950
  • Modified at: 2026-06-17T03:39:11Z
  • Patch available: yes
  • References total: 3
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-24036
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-122Heap-based Buffer Overflow
CWE-190Integer Overflow or Wraparound

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/facebook/folly/commit/4f304af1411e68851bdd00ef6140e9de4616f7d3Patch, Third Party Advisory
https://hhvm.com/blog/2021/07/20/security-update.htmlProduct, Vendor Advisory
https://www.facebook.com/security/advisories/cve-2021-24036Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
facebook:hhvm= 4.118.1; = 4.118.0; = 4.117.0; = 4.116.0; = 4.115.0; = 4.114.0; >= 4.103.0, <= 4.113.0; >= 4.81.0, <= 4.102.1; < 4.80.5nonvd/v1/products/facebook/hhvm
facebook:folly< 2021.07.22.00nonvd/v1/products/facebook/folly

Projects

RepositoryLink kindsIndexedUrl
facebook/follycommit, fixyes/v1/repositories/facebook/folly

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Exposed hosts: 25923
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports