CVE-2022-31628

phar wrapper can occur dos when using quine gzip file

Published Sep 28, 2022 CVSS 3.1 · 2.3 Low EPSS < 1% KEV · Not listed
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.

Remediation

Vendor Solution

Upgrade to PHP 7.4.31, 8.0.24, or 8.1.11.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3243-1 php7.3 security update
Debian DSA Debian DSA DSA-5277-1 php7.4 security update
EUVD EUVD EUVD-2022-53080 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.
Ubuntu USN Ubuntu USN USN-5717-1 PHP vulnerabilities
Ubuntu USN Ubuntu USN USN-5905-1 PHP vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
May 20, 2025, 8:24 PM
Reserved
May 25, 2022, 12:00 AM
Status
Modified
Published
Sep 28, 2022, 11:15 PM
Modified
Jun 17, 2026, 4:45 AM
Severity
Low
Public date
Sep 29, 2022, 12:00 AM