CVE Vulnerabilities

CVE-2022-31628

Uncontrolled Recursion

Published: Sep 28, 2022 | Modified: Nov 21, 2024
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
4.4 LOW
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

In PHP versions before 7.4.31, 8.0.24 and 8.1.11, the phar uncompressor code would recursively uncompress quines gzip files, resulting in an infinite loop.

Weakness

The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Affected Software

NameVendorStart VersionEnd Version
PhpPhp*7.4.31 (excluding)
PhpPhp8.0.0 (including)8.0.24 (excluding)
PhpPhp8.1.0 (including)8.1.11 (excluding)
Red Hat Enterprise Linux 8RedHatphp:8.0-8070020230118114629.ef331662*
Red Hat Enterprise Linux 8RedHatphp:7.4-8080020230118140634.cc342424*
Red Hat Enterprise Linux 9RedHatphp-0:8.0.27-1.el9_1*
Red Hat Enterprise Linux 9RedHatphp:8.1-9020020230120141750.9*
Php5Ubuntuesm-infra-legacy/trusty*
Php5Ubuntutrusty*
Php5Ubuntutrusty/esm*
Php7.0Ubuntuesm-infra/xenial*
Php7.0Ubuntuxenial*
Php7.2Ubuntubionic*
Php7.2Ubuntuesm-infra/bionic*
Php7.4Ubuntuesm-infra/focal*
Php7.4Ubuntufocal*
Php8.1Ubuntujammy*
Php8.1Ubuntukinetic*
Php8.1Ubuntulunar*
Php8.1Ubuntuupstream*

Potential Mitigations

References