Worker hang via recursive gzip decompression
Published Sep 28, 2022 · Updated May 20, 2025
Denial of service in PHP 7.4 before 7.4.31, 8.0 before 8.0.24, and 8.1 before 8.1.11 allows local users to hang a worker. In ext/phar/phar.c, a loop keeps decompressing output that remains gzip data without a recursion limit to stop a self-reproducing archive. Triggering requires a crafted archive to reach PHAR processing through the phar wrapper or PharData, after which the affected PHP worker consumes CPU indefinitely.
Summary
What happened
Denial of service in PHP 7.4 before 7.4.31, 8.0 before 8.0.24, and 8.1 before 8.1.11 allows local users to hang a worker. In ext/phar/phar.c, a loop keeps decompressing output that remains gzip data without a recursion limit to stop a self-reproducing archive. Triggering requires a crafted archive to reach PHAR processing through the phar wrapper or PharData, after which the affected PHP worker consumes CPU indefinitely.
The record
- CVE
- CVE-2022-31628
- Published
- Sep 28, 2022
- Updated
- May 20, 2025
- Vendor
- The PHP Group
- Product
- PHP
- Classifications
- CWE-674, T1499.004
- Attack vector
- local
- Privileges
- admin
Timeline
How it unfolded
- Sep 28, 2022CVE publishedPublication date reported by the CVE source.
- May 20, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=7.4.X <7.4.31
- Affected versionversion=8.0.X <8.0.24
- Affected versionversion=8.1.X <8.1.11
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- PHP bug 81726 gzip-quine proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo