PT-2026-24463 · File-Type · File-Type

Crnkovic

·

Published

2026-03-10

·

Updated

2026-05-22

·

CVE-2026-31808

CVSS v3.1

5.3

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Name of the Vulnerable Software and Affected Versions file-type versions prior to 21.3.1
Description A denial of service issue exists in the ASF (WMV/WMA) file type detection parser within file-type. When processing a specially crafted input where an ASF sub-header has a size field of zero, the parser gets stuck in an infinite loop. The payload value becomes negative (-24), causing tokenizer.ignore(payload) to move the read position backwards, repeatedly reading the same sub-header. Applications utilizing file-type to detect the type of untrusted input are susceptible. An attacker can disrupt the Node.js event loop with a 55-byte payload.
Recommendations Update to version 21.3.1 or later.

Exploit

Fix

DoS

Infinite Loop

Weakness Enumeration

Related Identifiers

CVE-2026-31808
GHSA-5V7R-6R5C-R473

Affected Products

File-Type