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

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

Name Vendor Start Version End Version
Php Php * 7.4.31 (excluding)
Php Php 8.0.0 (including) 8.0.24 (excluding)
Php Php 8.1.0 (including) 8.1.11 (excluding)
Red Hat Enterprise Linux 8 RedHat php:8.0-8070020230118114629.ef331662 *
Red Hat Enterprise Linux 8 RedHat php:7.4-8080020230118140634.cc342424 *
Red Hat Enterprise Linux 9 RedHat php-0:8.0.27-1.el9_1 *
Red Hat Enterprise Linux 9 RedHat php:8.1-9020020230120141750.9 *
Php5 Ubuntu esm-infra-legacy/trusty *
Php5 Ubuntu trusty *
Php5 Ubuntu trusty/esm *
Php7.0 Ubuntu esm-infra/xenial *
Php7.0 Ubuntu xenial *
Php7.2 Ubuntu bionic *
Php7.4 Ubuntu focal *
Php8.1 Ubuntu jammy *
Php8.1 Ubuntu kinetic *
Php8.1 Ubuntu lunar *
Php8.1 Ubuntu upstream *

Potential Mitigations

References