Bug 2159682 (CVE-2022-36313)

Summary: CVE-2022-36313 file-type: a malformed MKV file could cause the file type detector to get caught in an infinite loop
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aileenc, balejosg, chazlett, eric.wittmann, janstey, jpavlik, jwon, nboldt, pantinor, peholase, pjindal, scorneli
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: file-type 16.5.4, file-type 17.1.3, file-type 18.0.0 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the file-type npm package. A malformed MKV file could lead the file type detector to a denial of Service. This issue allows an attacker to input a malicious file and make the server unresponsive.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-12 11:39:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2159683, 2160319    
Bug Blocks: 2109706    

Description TEJ RATHI 2023-01-10 11:41:05 UTC
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.

https://github.com/sindresorhus/file-type/releases/tag/v16.5.4
https://github.com/sindresorhus/file-type/releases/tag/v17.1.3
https://www.npmjs.com/package/file-type
https://security.netapp.com/advisory/ntap-20220909-0005/

Comment 1 TEJ RATHI 2023-01-10 11:41:33 UTC
Created yarnpkg tracking bugs for this issue:

Affects: fedora-all [bug 2159683]

Comment 5 errata-xmlrpc 2023-02-09 11:36:08 UTC
This issue has been addressed in the following products:

  Red Hat Data Grid 8.4.1

Via RHSA-2023:0713 https://access.redhat.com/errata/RHSA-2023:0713

Comment 6 Product Security DevOps Team 2023-02-12 11:39:26 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-36313