CVE-2020-1899
HHVM vulnerability analysis and mitigation

Overview

CVE-2020-1899 is a vulnerability in HHVM's unserialize() function that was discovered in 2019. The vulnerability allowed arbitrary memory addresses to be accessed as if they were static StringData objects through a type code 'S', which was meant to be supported only for APC serialization. This issue affected multiple versions of HHVM including versions prior to v4.32.3, between versions 4.33.0 and 4.56.0, and specific versions 4.57.0, 4.58.0, 4.58.1, 4.59.0, 4.60.0, 4.61.0, and 4.62.0 (NVD).

Technical details

The vulnerability stems from the unserialize() function's improper handling of the type code 'S'. The function allowed this type code to be used outside of its intended APC serialization context, enabling arbitrary memory address access. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. It is classified under CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) and CWE-822 (Untrusted Pointer Dereference) (NVD).

Impact

The vulnerability allows attackers to access arbitrary memory addresses as if they were static StringData objects, potentially leading to information disclosure. The CVSS score indicates high confidentiality impact but no impact on integrity or availability of the system (NVD).

Exploitability

The vulnerability is remotely exploitable with low attack complexity and requires no privileges or user interaction. This is reflected in the CVSS vector string components: AV:N/AC:L/PR:N/UI:N (NVD).

Mitigation and workarounds

Facebook released security updates to address this vulnerability. Users should upgrade to one of the following patched versions: 4.32.3, 4.56.1, 4.57.1, 4.58.2, 4.59.1, 4.60.1, 4.61.1, 4.62.1, or 4.64.0 (HHVM Blog).

Additional resources


SourceThis report was generated using AI

Related HHVM vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2022-36937CRITICAL9.8
  • HHVM logoHHVM
  • hhvm
NoYesMay 10, 2023
CVE-2021-24036CRITICAL9.8
  • NixOS logoNixOS
  • folly
NoYesJul 23, 2021
CVE-2020-1900CRITICAL9.8
  • HHVM logoHHVM
  • hhvm
NoYesMar 11, 2021
CVE-2019-3556HIGH8.1
  • HHVM logoHHVM
  • cpe:2.3:a:facebook:hhvm
NoYesOct 26, 2021
CVE-2020-1899HIGH7.5
  • HHVM logoHHVM
  • hhvm
NoYesMar 11, 2021

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