Vulnerability · Published Jul 21, 2022 · Assigned by mitre
CVE-2022-36313
Medium 5.5
In plain English
A medium-severity infinite loop in the file-type package (npm). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.4%top 64.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
An issue was discovered in the file-type package before 16.5.4 and 17.x before 17.1.3 for Node.js. A malformed MKV file could cause the file type detector to get caught in an infinite loop. This would make the application become unresponsive and could be used to cause a DoS attack.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | file-type | 16.5.4 | GHSA-mhxj-85r3-2x55 |
| npm | file-type | 17.1.3 | GHSA-mhxj-85r3-2x55 |
Affected products (as reported)
Weakness: CWE-835 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
References
- https://www.npmjs.com/package/file-type x_refsource_MISC
- https://github.com/sindresorhus/file-type/releases/tag/v17.1.3 x_refsource_CONFIRM
- https://github.com/sindresorhus/file-type/releases/tag/v16.5.4 x_refsource_CONFIRM
- https://security.netapp.com/advisory/ntap-20220909-0005/ x_refsource_CONFIRM