SecurityContext

CVE-2019-3556: HHVM - Unrestricted File Upload

  • Cve: CVE-2019-3556
  • Name: HHVM - Unrestricted File Upload
  • Description: HHVM supports the use of an "admin" server which accepts administrative requests over HTTP. One of those request handlers, dump-pcre-cache, can be used to output cached regular expressions from the current execution context into a file. The handler takes a parameter which specifies where on the filesystem to write this data. The parameter is not validated, allowing a malicious user to overwrite arbitrary files where the user running HHVM has write access. This issue affects HHVM versions prior to 4.56.2, all versions between 4.57.0 and 4.78.0, as well as 4.79.0, 4.80.0, 4.81.0, 4.82.0, and 4.83.0.
  • Impact: Attackers can overwrite arbitrary files with HHVM's cached regex data, potentially leading to code execution or data tampering.
  • Remediation: Update HHVM to version 4.56.2 or later, preferably to the latest version available.
  • Vulnerability type: unrestricted_file_upload
  • Vulnerability impact: file_system_write, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
  • Epss score: 0.01789
  • Epss percentile: 0.78923
  • Assignee: [email protected]
  • Published at: 2021-10-26T20:15:07Z
  • Age in days: 1855
  • Modified at: 2026-06-17T02:35:13Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-3556
  • 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-22Improper Limitation of a Pathname to a Restricted Directory

References

UrlSourceTags
https://github.com/facebook/hhvm/commit/abe0b29e4d3a610f9bc920b8be4ad8403364c2d4nvdPatch, Third Party Advisory
https://hhvm.com/blog/2020/11/12/security-update.htmlnvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
facebook:hhvm= 4.83.0; = 4.82.0; = 4.81.0; = 4.80.0; = 4.79.0; >= 4.57.0, <= 4.78.0; < 4.56.2nonvd/v1/products/facebook/hhvm

Projects

RepositoryLink kindsIndexedUrl
facebook/hhvmcommityes/v1/repositories/facebook/hhvm
meta/hhvmfixyes/v1/repositories/meta/hhvm

Index

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

Exploitation

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