CVE-2022-31628

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.

Remediation

Solution:

  • Upgrade to PHP 7.4.31, 8.0.24, or 8.1.11.

Categories

2.3
CVSS
Severity: Low
CVSS 3.1 •
EPSS 0.01%
Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org Vendor Advisory debian.org Vendor Advisory gentoo.org
Affected: PHP Group PHP
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-31628?
CVE-2022-31628 has been scored as a low severity vulnerability.
How to fix CVE-2022-31628?
To fix CVE-2022-31628: Upgrade to PHP 7.4.31, 8.0.24, or 8.1.11.
Is CVE-2022-31628 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2022-31628 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-31628?
CVE-2022-31628 affects PHP Group PHP.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.