CVE-2022-31628
2.3low
phar wrapper can occur dos when using quine gzip file
- Severity
- 2.3low CVSS:3.1 by php
- Exploit likelihood
- 0.64% (higher than 51% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- php
- Also known as
- BIT-LIBPHP-2022-31628BIT-PHP-2022-31628BIT-PHP-MIN-2022-31628
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| PHP Group PHP | from 7.4.X before 7.4.31, from 8.0.X before 8.0.24, from 8.1.X before 8.1.11 | CVE List |
| php php | before 7.4.31, from 8.0.0 before 8.0.24, from 8.1.0 before 8.1.11 | NVD |
| fedoraproject fedora | 35, 36, 37 | NVD |
| debian debian_linux | 10.0, 11.0 | NVD |
| libphp (Bitnami) | before 7.4.31, from 8.0.0 before 8.0.24, from 8.1.0 before 8.1.11 | Bitnami Vulnerability Database |
| php (Bitnami) | before 7.4.31, from 8.0.0 before 8.0.24, from 8.1.0 before 8.1.11 | Bitnami Vulnerability Database |
| php-min (Bitnami) | before 7.4.31, from 8.0.0 before 8.0.24, from 8.1.0 before 8.1.11 | Bitnami Vulnerability Database |
All scores
| php | 2.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
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.
NVD (es)
En PHP versiones anteriores a 7.4.31, 8.0.24 y 8.1.11, el código del descompresor phar descomprimía recursivamente archivos gzip "quines", resultando en un bucle infinito
References
| https://bugs.php.net/bug.php?id=81726 | advisory, permissions-required, third-party-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XNIEABBH5XCXLFWWZYIDE457SPEDZTXV/ | vendor-advisory, web | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VI3E6A3ZTH2RP7OMLJHSVFIEQBIFM6RF/ | vendor-advisory, web | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2L5SUVYGAKSWODUQPZFBUB3AL6E6CSEV/ | vendor-advisory, web | |
| https://www.debian.org/security/2022/dsa-5277 | advisory, third-party-advisory, vendor-advisory | |
| https://security.gentoo.org/glsa/202211-03 | advisory, third-party-advisory, vendor-advisory | |
| https://security.netapp.com/advisory/ntap-20221209-0001/ | advisory, third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2022/12/msg00030.html | advisory, mailing-list, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-31628 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31628 changed 2025-05-20 | CVE Terms of Use |
| NVD | CVE-2022-31628 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-LIBPHP-2022-31628 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PHP-2022-31628 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PHP-MIN-2022-31628 changed 2026-09-08 | Apache-2.0 |