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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | hhvm | No fix yet | — |
| Ubuntu 16.04 LTS | hhvm | No fix yet | — |