Bug 1932024 (CVE-2021-22884) - CVE-2021-22884 nodejs: DNS rebinding in --inspect
Summary: CVE-2021-22884 nodejs: DNS rebinding in --inspect
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-22884
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: 1932025 1932026 1932027 1932028 1932029 1932030 1932031 1932363 1932364 1932365 1932366 1932367 1932368 1932424 1932425 1932426 1932807 1932808 1932809 1933697 1933698 1933699 1933700 1934566
Blocks: 1932033
TreeView+ depends on / blocked
 
Reported: 2021-02-23 19:37 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-01-19 13:01 UTC (History)
16 users (show)

Fixed In Version: node 15.10.0, node 14.16.0, node 12.21.0, node 10.24.0
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in nodejs. A denial of service is possible when the whitelist includes “localhost6”. When “localhost6” is not present in /etc/hosts, it is just an ordinary domain that is resolved via DNS over the network. If the attacker controls the victim's DNS server or can spoof its responses, the DNS rebinding protection can be bypassed by using the “localhost6” domain. As long as the attacker uses the “localhost6” domain, they can still apply the attack described in CVE-2018-7160.
Clone Of:
Environment:
Last Closed: 2021-03-04 19:02:00 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:0737 0 None None None 2021-03-08 01:23:58 UTC
Red Hat Product Errata RHBA-2021:0803 0 None None None 2021-03-10 16:58:17 UTC
Red Hat Product Errata RHBA-2021:0807 0 None None None 2021-03-10 17:28:25 UTC
Red Hat Product Errata RHBA-2021:0912 0 None None None 2021-03-17 06:02:57 UTC
Red Hat Product Errata RHBA-2021:0929 0 None None None 2021-03-18 10:23:18 UTC
Red Hat Product Errata RHSA-2021:0734 0 None None None 2021-03-04 15:59:24 UTC
Red Hat Product Errata RHSA-2021:0735 0 None None None 2021-03-04 16:05:11 UTC
Red Hat Product Errata RHSA-2021:0738 0 None None None 2021-03-08 10:23:09 UTC
Red Hat Product Errata RHSA-2021:0739 0 None None None 2021-03-08 10:14:45 UTC
Red Hat Product Errata RHSA-2021:0740 0 None None None 2021-03-08 10:27:25 UTC
Red Hat Product Errata RHSA-2021:0741 0 None None None 2021-03-08 10:19:55 UTC
Red Hat Product Errata RHSA-2021:0744 0 None None None 2021-03-08 10:32:56 UTC
Red Hat Product Errata RHSA-2021:0827 0 None None None 2021-03-15 14:50:15 UTC
Red Hat Product Errata RHSA-2021:0830 0 None None None 2021-03-15 14:53:11 UTC
Red Hat Product Errata RHSA-2021:0831 0 None None None 2021-03-15 14:57:21 UTC

Description Guilherme de Almeida Suckevicz 2021-02-23 19:37:22 UTC
Affected Node.js versions are vulnerable to denial of service attacks when the whitelist includes “localhost6”. When “localhost6” is not present in /etc/hosts, it is just an ordinary domain that is resolved via DNS, i.e., over network. If the attacker controls the victim's DNS server or can spoof its responses, the DNS rebinding protection can be bypassed by using the “localhost6” domain. As long as the attacker uses the “localhost6” domain, they can still apply the attack described in CVE-2018-7160.

Reference:
https://nodejs.org/en/blog/vulnerability/february-2021-security-releases/#update-23-feb-2021-security-releases-available

Comment 1 Guilherme de Almeida Suckevicz 2021-02-23 19:38:18 UTC
Created nodejs tracking bugs for this issue:

Affects: epel-all [bug 1932025]
Affects: fedora-all [bug 1932029]


Created nodejs:10/nodejs tracking bugs for this issue:

Affects: fedora-all [bug 1932026]


Created nodejs:12/nodejs tracking bugs for this issue:

Affects: fedora-all [bug 1932030]


Created nodejs:13/nodejs tracking bugs for this issue:

Affects: fedora-all [bug 1932027]


Created nodejs:14/nodejs tracking bugs for this issue:

Affects: fedora-all [bug 1932028]


Created nodejs:15/nodejs tracking bugs for this issue:

Affects: fedora-all [bug 1932031]

Comment 4 Jason Shepherd 2021-03-03 01:31:40 UTC
Upstream Commit:

https://github.com/nodejs/node/commit/1ca3f5abcb

Comment 7 errata-xmlrpc 2021-03-04 15:59:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 8 errata-xmlrpc 2021-03-04 16:05:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 9 Product Security DevOps Team 2021-03-04 19:02:00 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-2021-22884

Comment 10 errata-xmlrpc 2021-03-08 10:14:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.1 Extended Update Support

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

Comment 11 errata-xmlrpc 2021-03-08 10:19:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.1 Extended Update Support

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

Comment 12 errata-xmlrpc 2021-03-08 10:23:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Extended Update Support

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

Comment 13 errata-xmlrpc 2021-03-08 10:27:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Extended Update Support

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

Comment 14 errata-xmlrpc 2021-03-08 10:32:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 15 errata-xmlrpc 2021-03-15 14:50:13 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS

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

Comment 16 errata-xmlrpc 2021-03-15 14:53:06 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS

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

Comment 17 errata-xmlrpc 2021-03-15 14:57:17 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS

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

Comment 20 Cedric Buissart 2021-03-18 09:05:48 UTC
Mitigation:

Ensure that 'localhost6' is part of /etc/hosts.
e.g.: 

```
$ grep localhost6 /etc/hosts
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
```

Comment 23 Cedric Buissart 2021-03-18 10:44:10 UTC
Statement:

Red Hat Enterprise Linux ships with `localhost` and `localhost6` defined in `/etc/hosts`, and thus in general, would not be affected by this flaw, with some specific exceptions, such as :
 - `/etc/hosts` is disabled or has its default content (including `localhost6`) removed
 - the inspector is accessed using SSH tunneling from a remote computer that does not have `localhost6` statically defined

Red Hat Quay from version 3.4 consumes the nodejs from RHEL, so security tracking is provided by the container health index on the customer portal [1]. Additionally there is no impact from this issue on Quay 3.3 and 3.2 because they don't use the debug option (--inspect) and nodejs is only used at build time [2].
[1] https://catalog.redhat.com/software/containers/quay/quay-rhel8/600e03aadd19c7786c43ae49?container-tabs=security
[2] https://issues.redhat.com/browse/PROJQUAY-1409


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