Call to the scrypt_enc() function in HHVM can lead to heap corruption by using specifically crafted parameters (N, r and p)
Published Jul 18, 2019
9.8
CRITICALCVSS 3.1
EPSS 1.68%
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.
Affected products
-
- Version 3.30.6StatusaffectedConstraints-
- Version 4.0.0StatusaffectedConstraints<unspecified
- Version 4.3.1StatusaffectedConstraints-
- Version 4.4.0StatusaffectedConstraints-
- Version 4.4.1StatusaffectedConstraints-
- Version 4.5.0StatusaffectedConstraints-
- Version 4.5.1StatusaffectedConstraints-
- Version 4.6.0StatusaffectedConstraints-
- Version 4.6.1StatusaffectedConstraints-
- Version 4.7.0StatusaffectedConstraints-
- Version 4.7.1StatusaffectedConstraints-
- Version 4.8.0StatusaffectedConstraints-
- Version 4.8.1StatusaffectedConstraints-
- Version unspecifiedStatusaffectedConstraints<=3.30.5
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HHVM | n/a |
|
- ≤ 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
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 1.68% (0.01679) | 76.09th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.68% (0.01679) | 73.82th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.23% (0.00230) | 61.58th | v3 (v2023.03.01) |
| Jun 14, 2024 | 0.23% (0.00230) | 61.31th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.23% (0.00230) | 59.29th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Sep 10, 2022 | 0.89% (0.00885) | 26.24th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.89% (0.00885) | 24.24th | v2 (v2022.01.01) |
| Feb 4, 2022 | 9.03% (0.09029) | 86.86th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.74% (0.02742) | 63.06th | v1 |
| Jan 6, 2022 | 2.74% (0.02742) | 62.72th | v1 |
| Sep 1, 2021 | 0.62% (0.00624) | 45.04th | v1 |
| Apr 14, 2021 | 0.62% (0.00624) | 0.00th | v1 |
References (2)
- https://github.com/facebook/hhvm/commit/cc331e4349e91706a673e2a09f1f2ea5bbb33815 x_refsource_CONFIRMPatchThird Party Advisory
- https://hhvm.com/blog/2019/06/10/hhvm-4.9.0.html x_refsource_CONFIRMRelease NotesVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| https://github.com/facebook/hhvm/commit/cc331e4349e91706a673e2a09f1f2ea5bbb33815 | x_refsource_CONFIRMPatchThird Party Advisory | |
| https://hhvm.com/blog/2019/06/10/hhvm-4.9.0.html | x_refsource_CONFIRMRelease NotesVendor Advisory |
Change history (0)
No recorded changes yet.