alpinelinux / docker-alpine

Official Alpine Linux Docker image. Win at minimalism!
MIT License
1.04k stars 261 forks source link

Outdated PHP Vulnerability #249

Closed Aznyi closed 2 years ago

Aznyi commented 2 years ago

The PHP in the image is outdated and is considered a Critical vulnerability.

Description

The version of PHP installed on the remote host is prior to 7.4.28. It is, therefore, affected by a vulnerability as referenced in the Version 7.4.28 advisory.

In PHP versions 7.4.x below 7.4.28, 8.0.x below 8.0.16, and 8.1.x below 8.1.3, when using filter functions with FILTER_VALIDATE_FLOAT filter and min/max limits, if the filter fails, there is a possibility to trigger use of allocated memory after free, which can result it crashes, and potentially in overwrite of other memory chunks and RCE. This issue affects: code that uses FILTER_VALIDATE_FLOAT with min/max limits. (https://github.com/advisories/GHSA-g9qg-rg7j-whhx) Version Info

(7.4.26 under X-Powered-By: PHP/7.4.26) Installed version : 7.4.26 Fixed version : 7.4.28

Solution

Upgrade to PHP version 7.4.28 or later.

This was verified using Nessus.