Description
Insufficient boundary checks when processing M_SOFx markers from JPEG headers in the GD extension could allow access to out-of-bounds memory via a maliciously constructed invalid JPEG input. This issue affects HHVM versions prior to 3.30.9, all versions between 4.0.0 and 4.8.3, all versions between 4.9.0 and 4.15.2, and versions 4.16.0 to 4.16.3, 4.17.0 to 4.17.2, 4.18.0 to 4.18.1, 4.19.0, 4.20.0 to 4.20.1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| HHVM | 4.21.0, 4.20.2, 4.20.0 – < unspecified, 4.19.1, 4.19.0 – < unspecified, 4.18.2, 4.18.0 – < unspecified, 4.17.3, 4.17.0 – < unspecified, 4.16.4, 4.16.0 – < unspecified, 4.15.3, 4.9.0 – < unspecified, 4.8.4, 4.0.0 – < unspecified, 3.30.10, unspecified – ≤ 3.30.9 | 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 | — |