CVE-2022-31628: phar wrapper can occur dos when using quine gzip file

Published Sep 28, 2022
·
Updated

Fixed bug : phar wrapper: DOS when using quine gzip file. (CVE-2022-31628)

Other sources

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.

— Launchpad

phar wrapper can occur dos when using quine gzip file

— Microsoft

Affected Software

21 affected componentsFixes available
PHP PHP<8.0.24
8.0.24
PHP PHP<7.4.31
PHP PHP>=8.0.0<8.0.24
PHP PHP>=8.1.0<8.1.11
Fedoraproject Fedora=35
Fedoraproject Fedora=36
Fedoraproject Fedora=37
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Microsoft cbl2 php
debian/php7.3
debian/php8.1
alpine/php7<7.4.32-r0
7.4.32-r0
alpine/php7<7.4.32-r0
7.4.32-r0
alpine/php8<8.0.24-r0
8.0.24-r0
alpine/php8<8.0.25-r0
8.0.25-r0
alpine/php8<8.0.24-r0
8.0.24-r0
alpine/php81<8.1.11-r0
8.1.11-r0
alpine/php81<8.1.11-r0
8.1.11-r0
alpine/php81<8.1.11-r0
8.1.11-r0
alpine/php81<8.1.11-r0
8.1.11-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 8.0.24
  2. Upgrade

    Upgrade alpine/php7 to a version that resolves this vulnerability.

    Fixed in 7.4.32-r0
  3. Upgrade

    Upgrade alpine/php8 to a version that resolves this vulnerability.

    Fixed in 8.0.24-r0
  4. Upgrade

    Upgrade alpine/php8 to a version that resolves this vulnerability.

    Fixed in 8.0.25-r0
  5. Upgrade

    Upgrade alpine/php81 to a version that resolves this vulnerability.

    Fixed in 8.1.11-r0
  6. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.4.31
  7. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 8.1.11

Event History

Sep 28, 2022
CVE Published
via MITRE·10:25 PM
Data Sourced
via MITRE·10:25 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·11:15 PM
DescriptionSeverityAffected Software
Oct 11, 2022
Data Sourced
via Red Hat·07:52 AM
DescriptionSeverityAffected Software
Oct 1, 2025
Data Sourced
via Microsoft·11:11 PM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203