CVE-2019-3570

Facebook HHVM: Heap-based Buffer Overflow

No CVSS score yet EPSS 1.68%

Published 18 Jul 2019 Updated 4 Aug 2024 CNA: facebook

Check your servers for CVE-2019-3570

The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2019-3570 affects hhvm, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

Call to the scrypt_enc() function in HHVM can lead to heap corruption by using specifically crafted parameters (N, r and p). This happens if the parameters are configurable by an attacker for instance by providing the output of scrypt_enc() in a context where Hack/PHP code would attempt to verify it by re-running scrypt_enc() with the same parameters. This could result in information disclosure, memory being overwriten or crashes of the HHVM process. This issue affects versions 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, versions 3.30.5 and below, and all versions in the 4.0, 4.1, and 4.2 series.

Exploitation

EPSS 1.68%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 77.3% of all scored CVEs. Scores of 27 Nov 2026.

Weakness

Affected products

As the CNA lists them.

ProductVersions
HHVM
affected 4.8.1
affected 4.8.0
affected 4.7.1
affected 4.7.0
affected 4.6.1
affected 4.6.0
affected 4.5.1
affected 4.5.0
affected 4.4.1
affected 4.4.0
affected 4.3.1
affected from 4.0.0, before unspecified
affected 3.30.6
affected up to and including 3.30.5

Is my server affected?

Find the installed version of hhvm and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i hhvm
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2019-3570 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2019-3570

RHEL, Rocky, Alma, Fedora

rpm -q hhvm
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2019-3570

Alpine

apk list --installed | grep -i hhvm

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2019-3570
trivy image --scanners vuln IMAGE | grep CVE-2019-3570

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the agent.

References

Advisories

Source: the record CVE-2019-3570 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.