CVE-2020-1900
HHVM vulnerability analysis and mitigation

Overview

CVE-2020-1900 is a vulnerability in HHVM (HipHop Virtual Machine) related to object unserialization with dynamic properties. The issue affects HHVM versions prior to v4.32.3, between versions 4.33.0 and 4.56.0, and versions 4.57.0, 4.58.0, 4.58.1, 4.59.0, 4.60.0, 4.61.0, and 4.62.0. The vulnerability was discovered in 2019 and publicly disclosed in June 2020 (NIST NVD).

Technical details

When unserializing an object with dynamic properties, HHVM needs to pre-reserve the full size of the dynamic property array before inserting anything into it. If this pre-reservation is not performed, the array might resize, which could invalidate previously stored references. This vulnerability occurs because the pre-reservation was not happening in affected versions. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (Critical) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NIST NVD).

Impact

The vulnerability could lead to a use-after-free condition during object unserialization, potentially resulting in arbitrary code execution, information disclosure, or system crashes. The high CVSS score indicates that this vulnerability could have severe consequences if exploited (NIST NVD).

Exploitability

The vulnerability requires no special privileges or user interaction to exploit, and can be triggered through network access. The attack complexity is considered low, making it relatively straightforward to exploit if unpatched (NIST NVD).

Mitigation and workarounds

The vulnerability has been fixed in HHVM version 4.32.3 and versions 4.56.1 and above. Users are advised to upgrade to these patched versions to protect against this vulnerability. The fix involves implementing proper pre-reservation of dynamic property arrays during object unserialization (HHVM Blog, GitHub Patch).

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