file-type affected by infinite loop in ASF parser on malformed input with zero-size sub-header
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| sindresorhus | file-type | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Sindresorhus | File-type |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-5v7r-6r5c-r473 | file-type affected by infinite loop in ASF parser on malformed input with zero-size sub-header |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.369% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:sindresorhus:file-type:*:*:*:*:*:node.js:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Sindresorhus
Sindresorhus file-type |
|
| Vendors & Products |
Sindresorhus
Sindresorhus file-type |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | file-type affected by infinite loop in ASF parser on malformed input with zero-size sub-header | |
| Weaknesses | CWE-835 | |
| References |
| |
| Metrics |
cvssV3_1
|