PT-2019-11020 · Facebook · Hhvm

Fred Emmott

·

Published

2019-01-15

·

Updated

2020-09-21

·

CVE-2018-6345

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: HHVM versions 3.30.1 and 3.27.5 and below
Description: The issue arises from the function number format when its second argument ($dec points) is excessively large, leading to a heap overflow. This occurs because the internal implementation of number format creates a string with an invalid length, which can then interact poorly with other functions.
Recommendations: For HHVM versions 3.30.1 and 3.27.5 and below, consider restricting the use of the number format function with large $dec points values until a patch is available. As a temporary workaround, limit the value of $dec points to prevent excessively large inputs. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Memory Corruption

Heap Based Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2018-6345

Affected Products

Hhvm