CVEvulnerability

CVE-2019-3570

9.8 CRITICAL Published 2019-07-18 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2019-07-18
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0 ([email protected])
7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
Weaknesses
CWE-122, CWE-787

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 configurations

• facebook hiphop virtual machine (<= 3.30.5) • facebook hiphop virtual machine (>= 4.0.0 <= 4.0.4) • facebook hiphop virtual machine 4.1.0 • facebook hiphop virtual machine 4.2.0 • facebook hiphop virtual machine 4.3.0 • facebook hiphop virtual machine 4.4.0 • facebook hiphop virtual machine 4.5.0 • facebook hiphop virtual machine 4.6.0 • facebook hiphop virtual machine 4.7.0 • facebook hiphop virtual machine 4.8.0

Related

Weakness · CWE (2)

  • CWE-122 Heap-based Buffer Overflow weakness
  • CWE-787 Out-of-bounds Write weakness

References