Bug 1500700 (CVE-2017-16138) - CVE-2017-16138 nodejs-mime: Regular expression Denial of Service
Summary: CVE-2017-16138 nodejs-mime: Regular expression Denial of Service
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2017-16138
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1500701 1500702 1501997 1501998 1516749 1516750
Blocks: 1500708
TreeView+ depends on / blocked
 
Reported: 2017-10-11 11:04 UTC by Andrej Nemec
Modified: 2021-10-19 12:10 UTC (History)
37 users (show)

Fixed In Version: nodejs-mime 2.0.3
Doc Type: If docs needed, set a value
Doc Text:
The mime module is vulnerable to regular expression denial of service when a mime lookup is performed on untrusted user input.
Clone Of:
Environment:
Last Closed: 2018-02-27 01:44:17 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:3917 0 None None None 2021-10-19 12:10:00 UTC

Description Andrej Nemec 2017-10-11 11:04:59 UTC
The mime module is vulnerable to regular expression denial of service when a mime lookup is performed on untrusted user input.

Upstream issue:

https://github.com/broofa/node-mime/issues/167

Upstream patches:

https://github.com/broofa/node-mime/commit/855d0c4b8b22e4a80b9401a81f2872058eae274d
https://github.com/broofa/node-mime/commit/1df903fdeb9ae7eaa048795b8d580ce2c98f40b0

Comment 1 Andrej Nemec 2017-10-11 11:05:28 UTC
Created nodejs-mime tracking bugs for this issue:

Affects: epel-all [bug 1500701]
Affects: fedora-all [bug 1500702]

Comment 2 Pedro Yóssis Silva Barbosa 2017-10-13 16:38:18 UTC
External References:

https://nodesecurity.io/advisories/535

Comment 6 Pedro Yóssis Silva Barbosa 2017-10-18 15:14:56 UTC
This issue affects the versions of rh-nodejs4-nodejs-mime as shipped with Red Hat Enterprise Linux 6 and 7. Red Hat Product Security has rated this issue as having Moderate security impact. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

Comment 8 Mark Knowles 2017-11-23 11:02:21 UTC
Created nodejs-mime tracking bugs for this issue:

Affects: openshift-1 [bug 1516749]

Comment 10 Jason Shepherd 2018-01-12 06:49:17 UTC
The vulnerable function call, mime.lookup, is not used in any RHMAP services. Marking it as not affected.

Comment 12 Jason Shepherd 2021-05-07 02:47:55 UTC
Statement:

Red Hat Virtualization 4.2 EUS contained a vulnerable version of nodejs-mime in the ovirt-engine-dashboard package. This package has been removed in Red Hat Virtualization 4.2.

Red Hat Quay includes mime as a dependency of Karma. It's only used at build time, not runtime so this vulnerability has a low impact of Red Hat Quay.

Comment 14 errata-xmlrpc 2021-10-19 12:09:58 UTC
This issue has been addressed in the following products:

  Red Hat Quay 3

Via RHSA-2021:3917 https://access.redhat.com/errata/RHSA-2021:3917


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