CVE Explorer
CVE-2026-31808
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"file-type","vendor":"sindresorhus","versions":[{"status":"affected","version":">= 13.0.0, < 21.3.1"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:cc49123f1fa1a7d7e31bdf42e6bc2de0665e2afd80cd5248da8115ab4b05cb6d · sha256:caf502f745ed90ff… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:cc49123f1fa1a7d7e31bdf42e6bc2de0665e2afd80cd5248da8115ab4b05cb6d · sha256:caf502f745ed90ff… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-835","description":"CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cc49123f1fa1a7d7e31bdf42e6bc2de0665e2afd80cd5248da8115ab4b05cb6d · sha256:caf502f745ed90ff… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/sindresorhus/file-type/commit/319abf871b50ba2fa221b4a7050059f1ae096f4f","tags":["x_refsource_MISC"],"url":"https://github.com/sindresorhus/file-type/commit/319abf871b50ba2fa221b4a7050059f1ae096f4f"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:cc49123f1fa1a7d7e31bdf42e6bc2de0665e2afd80cd5248da8115ab4b05cb6d · sha256:caf502f745ed90ff… · /containers/cna/references/1
{"name":"https://github.com/sindresorhus/file-type/security/advisories/GHSA-5v7r-6r5c-r473","tags":["x_refsource_CONFIRM"],"url":"https://github.com/sindresorhus/file-type/security/advisories/GHSA-5v7r-6r5c-r473"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:cc49123f1fa1a7d7e31bdf42e6bc2de0665e2afd80cd5248da8115ab4b05cb6d · sha256:caf502f745ed90ff… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.