Bug 2159683 - CVE-2022-36313 yarnpkg: file-type: a malformed MKV file could cause the file type detector to get caught in an infinite loop [fedora-all]
Summary: CVE-2022-36313 yarnpkg: file-type: a malformed MKV file could cause the file ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yarnpkg
Version: 37
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Zuzana Svetlikova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: CVE-2022-36313
TreeView+ depends on / blocked
 
Reported: 2023-01-10 11:41 UTC by TEJ RATHI
Modified: 2023-01-11 12:34 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-01-11 12:34:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description TEJ RATHI 2023-01-10 11:41:20 UTC
More information about this security flaw is available in the following bug:

http://bugzilla.redhat.com/show_bug.cgi?id=2159682

Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Comment 1 TEJ RATHI 2023-01-10 11:41:24 UTC
Use the following template to for the 'fedpkg update' request to submit an
update for this issue as it contains the top-level parent bug(s) as well as
this tracking bug.  This will ensure that all associated bugs get updated
when new packages are pushed to stable.

=====

# bugfix, security, enhancement, newpackage (required)
type=security

# low, medium, high, urgent (required)
severity=medium

# testing, stable
request=testing

# Bug numbers: 1234,9876
bugs=2159682,2159683

# Description of your update
notes=Security fix for [PUT CVEs HERE]

# Enable request automation based on the stable/unstable karma thresholds
autokarma=True
stable_karma=3
unstable_karma=-3

# Automatically close bugs when this marked as stable
close_bugs=True

# Suggest that users restart after update
suggest_reboot=False

======

Additionally, you may opt to use the bodhi web interface to submit updates:

https://bodhi.fedoraproject.org/updates/new

Comment 2 Sandro Mani 2023-01-11 12:34:24 UTC
This is a false positive, file-type is not used by yarn itself, it only appears in the testdata:

$ grep -r file-type
node_modules/node-fetch/README.md:var fileType = require('file-type');
__tests__/fixtures/add/install-should-cleanup-when-package-json-changed-3/yarn.lock.after:    file-type "^3.1.0"
__tests__/fixtures/add/install-should-cleanup-when-package-json-changed-3/yarn.lock.after:    file-type "^3.1.0"
__tests__/fixtures/add/install-should-cleanup-when-package-json-changed-3/yarn.lock.after:file-type@^3.1.0:
__tests__/fixtures/add/install-should-cleanup-when-package-json-changed-3/yarn.lock.after:  resolved "https://registry.npmjs.org/file-type/-/file-type-3.8.0.tgz#bcadf6a8f624ebe4a10e5ad26727b6b93f16d78d"
__tests__/fixtures/add/install-should-cleanup-when-package-json-changed-3/yarn.lock:    file-type "^3.1.0"
__tests__/fixtures/add/install-should-cleanup-when-package-json-changed-3/yarn.lock:    file-type "^3.1.0"
__tests__/fixtures/add/install-should-cleanup-when-package-json-changed-3/yarn.lock:file-type@^3.1.0:
__tests__/fixtures/add/install-should-cleanup-when-package-json-changed-3/yarn.lock:  resolved "https://registry.npmjs.org/file-type/-/file-type-3.8.0.tgz#bcadf6a8f624ebe4a10e5ad26727b6b93f16d78d"
__tests__/fixtures/install/install-should-dedupe-avoiding-conflicts-8/yarn.lock:    file-type "^3.1.0"
__tests__/fixtures/install/install-should-dedupe-avoiding-conflicts-8/yarn.lock:    file-type "^3.1.0"
__tests__/fixtures/install/install-should-dedupe-avoiding-conflicts-8/yarn.lock:file-type@^3.1.0:
__tests__/fixtures/install/install-should-dedupe-avoiding-conflicts-8/yarn.lock:  resolved "https://registry.npmjs.org/file-type/-/file-type-3.8.0.tgz#bcadf6a8f624ebe4a10e5ad26727b6b93f16d78d"
__tests__/fixtures/install/install-should-dedupe-avoiding-conflicts-9/yarn.lock:    file-type "^3.1.0"
__tests__/fixtures/install/install-should-dedupe-avoiding-conflicts-9/yarn.lock:    file-type "^3.1.0"
__tests__/fixtures/install/install-should-dedupe-avoiding-conflicts-9/yarn.lock:file-type@^3.1.0:
__tests__/fixtures/install/install-should-dedupe-avoiding-conflicts-9/yarn.lock:  resolved "https://registry.npmjs.org/file-type/-/file-type-3.8.0.tgz#bcadf6a8f624ebe4a10e5ad26727b6b93f16d78d"


Note You need to log in before you can comment on or make changes to this bug.