CVE-2026-31808 file-type affected by infinite loop in ASF parser on malformed input with zero-size sub-header
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- Red Hat
Description
file-type detects the file type of a file, stream, or data. Prior to 21.3.1, a denial of service vulnerability exists in the ASF (WMV/WMA) file type detection parser. When parsing a crafted input where an ASF sub-header has a size field of zero, the parser enters an infinite loop. The payload value becomes negative (-24), causing tokenizer.ignore(payload) to move the read position backwards, so the same sub-header is read repeatedly forever. Any application that uses file-type to detect the type of untrusted/attacker-controlled input is affected. An attacker can stall the Node.js event loop with a 55-byte payload. Fixed in version 21.3.1.
Upgrade path
18 packages: 2 fixed, 16 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/ansible-automation-platform/automation-portal(Red Hat ansible_portal 2) | All versions | No fix listed | No fix yet |
| redhat/devspaces/code-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/devspaces/code-sshd-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/io.apicurio-apicurio-registry(Red Hat service_registry 2) | All versions | No fix listed | No fix yet |
| redhat/io.cryostat-cryostat(Red Hat cryostat 4) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/elasticsearch-operator-bundle(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/elasticsearch-proxy-rhel9(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/elasticsearch-rhel9-operator(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/elasticsearch6-rhel9(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/kibana6-rhel8(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/openshift-logging/logging-curator5-rhel9(Red Hat logging 5) | All versions | No fix listed | No fix yet |
| redhat/org.infinispan-infinispan-console(Red Hat jboss_data_grid 8) | All versions | No fix listed | No fix yet |
| redhat/rhdh/rhdh-hub-rhel9(Red Hat rhdh 1) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/satellite/iop-host-inventory-frontend-rhel9(Red Hat satellite 6) | All versions | No fix listed | No fix yet |
| npm file-type(npm) | >= 13.0.0, < 21.3.1 | 21.3.1 | Fixed |
| sindresorhus file-type | = >= 13.0.0, < 21.3.1; >= 13.0.0, < 21.3.1 | 21.3.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| sindresorhus file-type | = >= 13.0.0, < 21.3.1 | No fix listed |
| npm file-type(npm) | >= 13.0.0, < 21.3.1 | 21.3.1 |
| redhat/io.cryostat-cryostat(Red Hat:cryostat:4) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch6-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch-operator-bundle(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch-proxy-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch-rhel9-operator(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/kibana6-rhel8(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/logging-curator5-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| redhat/io.apicurio-apicurio-registry(Red Hat:service_registry:2) | All versions | No fix listed |
| redhat/org.infinispan-infinispan-console(Red Hat:jboss_data_grid:8) | All versions | No fix listed |
| redhat/rhdh/rhdh-hub-rhel9(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/devspaces/code-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/devspaces/code-sshd-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/satellite/iop-host-inventory-frontend-rhel9(Red Hat:satellite:6) | All versions | No fix listed |
| redhat/ansible-automation-platform/automation-portal(Red Hat:ansible_portal:2) | All versions | No fix listed |
| sindresorhus file-type | >= 13.0.0, < 21.3.1 | 21.3.1 |
References
- https://github.com/sindresorhus/file-type/security/advisories/GHSA-5v7r-6r5c-r473 mitigation patch vendor-advisory
- https://github.com/sindresorhus/file-type/commit/319abf871b50ba2fa221b4a7050059f1ae096f4f patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2446309 issue-tracking
- www.cve.org
- github.com product