CVE-2019-3570: facebook hhvm Heap-based Buffer Overflow
Vulnerability summary
CVE-2019-3570 is a critical (CVSS 9.8) Heap-based Buffer Overflow vulnerability in facebook hhvm. EPSS estimates a 1.68% chance of exploitation in the next 30 days, higher than 76.5% of scored vulnerabilities.
Timeline
- 18-07-2019PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 2 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.68%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
0.00 pp
From 1.68% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-122Heap-based Buffer OverflowA heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Facebook2 products
- hhvm4.8.1 | 4.8.0 | 4.7.1 | 4.7.0 | 4.6.1 | 4.6.0 | 4.5.1 | 4.5.0 | 4.4.1 | 4.4.0 | 4.3.1 | ≥ 4.0.0, < unspecified | 3.30.6 | ≥ unspecified, ≤ 3.30.5
- hiphop_virtual_machine≤ 3.30.5 | ≥ 4.0.0, ≤ 4.0.4 | 4.1.0 | 4.2.0 | 4.3.0 | 4.4.0 | 4.5.0 | 4.6.0 | 4.7.0 | 4.8.0
Ubuntu1 product
- hhvmAll versions (No fix recorded)
2 vendors · 3 products
References
4 links- github.com/facebook/hhvm/commit/cc331e4349e91706a673e2a09f1f2ea5bbb33815X Refsource CONFIRMPatchThird Party Advisory