CVE-2022-31628

published 28 Sep 2022 · updated 1 Oct 2025

phar wrapper can occur dos when using quine gzip file

2.3LowCVSS 2.3EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in PHP 7.4.31, PHP 8.0.24 and PHP 8.1.11.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PHP GroupPHP>=7.4.X <7.4.31, >=8.0.X <8.0.24, >=8.1.X <8.1.117.4.31, 8.0.24, 8.1.11

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in PHP, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-31628 severity on Zeptric[![CVE-2022-31628](https://zeptric.io/badge/cve/CVE-2022-31628.svg)](https://zeptric.io/cve/CVE-2022-31628)