Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1493989 - (CVE-2017-15010) CVE-2017-15010 nodejs-tough-cookie: Regular expression denial of service
CVE-2017-15010 nodejs-tough-cookie: Regular expression denial of service
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20170905,repor...
: Security
Depends On: 1493991 1497695 1497696 1497700 1497701 1566717 1598163
Blocks: 1493992
  Show dependency treegraph
 
Reported: 2017-09-21 05:43 EDT by Andrej Nemec
Modified: 2018-08-31 17:53 EDT (History)
26 users (show)

See Also:
Fixed In Version: tough-cookie 2.3.3
Doc Type: If docs needed, set a value
Doc Text:
A regular expression denial of service flaw was found in Tough-Cookie. An attacker able to make an application using Touch-Cookie to parse a sufficiently large HTTP request Cookie header could cause the application to consume an excessive amount of CPU.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch (3.25 KB, patch)
2017-10-02 09:51 EDT, Pedro Yóssis Silva Barbosa
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:2912 normal SHIPPED_LIVE Moderate: rh-nodejs4-nodejs-tough-cookie security update 2017-10-18 16:46:42 EDT
Red Hat Product Errata RHSA-2017:2913 normal SHIPPED_LIVE Moderate: rh-nodejs6-nodejs-tough-cookie security update 2017-10-18 16:57:54 EDT
Red Hat Product Errata RHSA-2018:1263 None None None 2018-04-30 14:41 EDT
Red Hat Product Errata RHSA-2018:1264 None None None 2018-04-30 11:29 EDT

  None (edit)
Description Andrej Nemec 2017-09-21 05:43:32 EDT
It was found that the tough-cookie module is vulnerable to regular expression denial of service. Input of around 50k characters is required for a slow down of around 2 seconds.

Unless node was compiled using the -DHTTP_MAX_HEADER_SIZE= option the default header max length is 80kb so the impact of the ReDoS is limited to around 7.3 seconds of blocking.

Upstream issue:

https://github.com/salesforce/tough-cookie/issues/92

Upstream patch:
https://github.com/salesforce/tough-cookie/commit/98e0916d7b017669c93855d831c6e0b19c14141e
Comment 1 Andrej Nemec 2017-09-21 05:44:23 EDT
Created nodejs-tough-cookie tracking bugs for this issue:

Affects: fedora-all [bug 1493991]
Comment 4 Pedro Yóssis Silva Barbosa 2017-10-02 09:51 EDT
Created attachment 1333247 [details]
patch
Comment 7 Pedro Yóssis Silva Barbosa 2017-10-08 12:20:45 EDT
External References:

https://nodesecurity.io/advisories/525
Comment 8 errata-xmlrpc 2017-10-18 12:47:38 EDT
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS

Via RHSA-2017:2912 https://access.redhat.com/errata/RHSA-2017:2912
Comment 9 errata-xmlrpc 2017-10-18 12:58:30 EDT
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS

Via RHSA-2017:2913 https://access.redhat.com/errata/RHSA-2017:2913
Comment 10 Jason Shepherd 2018-01-11 03:03:15 EST
RHMAP is vulnerable though use of Request NodeJS library. Need to upgrade to at least 2.83.0
Comment 13 errata-xmlrpc 2018-04-30 11:29:40 EDT
This issue has been addressed in the following products:

  Red Hat Mobile Application Platform 4.6

Via RHSA-2018:1264 https://access.redhat.com/errata/RHSA-2018:1264
Comment 14 errata-xmlrpc 2018-04-30 14:40:49 EDT
This issue has been addressed in the following products:

  Red Hat Mobile Application Platform 4.6

Via RHSA-2018:1263 https://access.redhat.com/errata/RHSA-2018:1263
Comment 15 Jason Shepherd 2018-06-13 17:29:08 EDT
NodeJS is shipped in Openshift Enterprise 3.9 as ImageStreams. Those ImageStreams are the RH Software Collection images. Setting Openshift Enterprise 3 as not affected.

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