title: phar wrapper can occur dos when using quine gzip file
description: 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.
problem types: CWE-674 Uncontrolled Recursion
affected:
{
vendor: PHP Group
product: PHP
versions:
version: 7.4.X, status: affected, lessThan: 7.4.31, versionType: custom
version: 8.0.X, status: affected, lessThan: 8.0.24, versionType: custom
version: 8.1.X, status: affected, lessThan: 8.1.11, versionType: custom
}
metrics:
cvssV3_1: [
version: 3.1
vectorString: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L
attackVector: LOCAL
attackComplexity: LOW
privilegesRequired: HIGH
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: NONE
integrityImpact: NONE
availabilityImpact: LOW
baseScore: 2.3
baseSeverity: LOW
]
solutions: Upgrade to PHP 7.4.31, 8.0.24, or 8.1.11.