Advisory

GHSA-mhxj-85r3-2x55

Also known as: CVE-2022-36313

Summary

file-type vulnerable to Infinite Loop via malformed MKV file

Details

An issue was discovered in the file-type package from 13.0.0 until 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 when used on a web server.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-07-22 00:00 UTC
Modified
2023-11-08 04:10 UTC

Affected packages and fixes

file-type

npm · All systems

Affected

  • introduced 13.0.0, fixed 16.5.4 (semver)

Fixed versions

16.5.4

Fix

file-type

npm · All systems

Affected

  • introduced 17.0.0, fixed 17.1.3 (semver)

Fixed versions

17.1.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences