Skip to content
OpenAdvisories
Unscored CVE-2018-6345 EUVD-2018-18103GHSA-g4fr-ffvg-p5w6

The function number_format is vulnerable to a heap overflow issue when its second argument ($dec_points) is excessively large. The internal…

Published Jan 15, 2019 · Updated Aug 5, 2024 · Assigned by facebook

Description

The function number_format is vulnerable to a heap overflow issue when its second argument ($dec_points) is excessively large. The internal implementation of the function will cause a string to be created with an invalid length, which can then interact poorly with other functions. This affects all supported versions of HHVM (3.30.1 and 3.27.5 and below).

Affected products

VendorProductAffectedFixed
Facebook HHVM 3.30.2, 3.30.0 – < unspecified, 3.27.6, unspecified – < 3.27.6 unspecified

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS hhvm No fix yet —
Ubuntu 16.04 LTS hhvm No fix yet —

References