CVE-2018-6345

published 15 Jan 2019 · updated 5 Aug 2024

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

5.0MediumEPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in 3.27.6 and unspecified.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Facebook<3.27.6, =3.27.6, =3.30.2, >=3.30.0 <unspecified3.27.6, unspecified

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2018-6345 severity on Zeptric[![CVE-2018-6345](https://zeptric.io/badge/cve/CVE-2018-6345.svg)](https://zeptric.io/cve/CVE-2018-6345)