CVE-2019-3570
Reported by facebook · Published July 18, 2019
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| hiphop_virtual_machine | 4.0.4, 3.30.5 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| HHVM | 4.8.1, 4.8.0, 4.7.1 | |
| HHVM | *, 4.8.1, 4.7.1 |
Timeline
- Jul 18, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- May 24, 2022 CVE Updated
- Apr 5, 2026 Security Advisory
- Sep 10, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-3570
vulnetix vdb fixes CVE-2019-3570
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-3570/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart