CVE-2026-32630 file-type affected by ZIP Decompression Bomb DoS via [Content_Types].xml entry
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- Red Hat
Description
file-type detects the file type of a file, stream, or data. From 20.0.0 to 21.3.1, a crafted ZIP file can trigger excessive memory growth during type detection in file-type when using fileTypeFromBuffer(), fileTypeFromBlob(), or fileTypeFromFile(). The ZIP inflate output limit is enforced for stream-based detection, but not for known-size inputs. As a result, a small compressed ZIP can cause file-type to inflate and process a much larger payload while probing ZIP-based formats such as OOXML. This vulnerability is fixed in 21.3.2.
Upgrade path
3 packages: 2 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/rhdh/rhdh-hub-rhel9(Red Hat rhdh 1) | All versions | No fix listed | No fix yet |
| npm file-type(npm) | >= 20.0.0, < 21.3.2; >= 20.0.0, <= 21.3.1 | 21.3.2 | Fixed |
| sindresorhus file-type | = >= 20.0.0, < 21.3.2; >= 20.0.0, < 21.3.2 | 21.3.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| sindresorhus file-type | = >= 20.0.0, < 21.3.2 | No fix listed |
| npm file-type(npm) | >= 20.0.0, <= 21.3.1 | No fix listed |
| redhat/rhdh/rhdh-hub-rhel9(Red Hat:rhdh:1) | All versions | No fix listed |
| sindresorhus file-type | >= 20.0.0, < 21.3.2 | 21.3.2 |
| npm file-type(npm) | >= 20.0.0, < 21.3.2 | 21.3.2 |
References
- https://github.com/sindresorhus/file-type/security/advisories/GHSA-j47w-4g3g-c36v exploit vendor-advisory
- https://github.com/sindresorhus/file-type/commit/399b0f156063f5aeb1c124a7fd61028f3ea7c124 patch
- github.com patch
- github.com
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2447514 issue-tracking
- www.cve.org
- github.com product