Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-31808— file-type affected by infinite loop in ASF parser on malformed input with zero-size sub-header

Quick assessment

Affected
sindresorhus file-type
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

file type是Sindre Sorhus个人开发者的一个文件类型检测工具。 file type 21.3.1之前版本存在安全漏洞,该漏洞源于ASF文件类型检测解析器在处理特制输入时可能进入无限循环,可能导致拒绝服务。

CVSS 5.3 · Medium EPSS 0.43% · P36
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-31808

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
file-type affected by infinite loop in ASF parser on malformed input with zero-size sub-header
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
不可达退出条件的循环(无限循环)
Source: CVE Program / CVE List V5
Vulnerability Title
file type 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
file type是Sindre Sorhus个人开发者的一个文件类型检测工具。 file type 21.3.1之前版本存在安全漏洞,该漏洞源于ASF文件类型检测解析器在处理特制输入时可能进入无限循环,可能导致拒绝服务。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
sindresorhus file-type >= 13.0.0, < 21.3.1 -

II. Public POCs for CVE-2026-31808

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-31808

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-31808 (1)

Vendor Advisories for CVE-2026-31808 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-31808

No comments yet


Leave a comment