CVE-2021-22884
nodejs: DNS rebinding in --inspect
Overview
Description
Node.js before 10.24.0, 12.21.0, 14.16.0, and 15.10.0 is vulnerable to DNS rebinding attacks as 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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness: CWE-350
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | node | >=10.0.0, <10.24.0>=12.0.0, <12.21.0>=14.0.0, <14.16.0>=15.0.0, <15.10.0 | 10.24.012.21.014.16.015.10.0 |
| Bitnami | node-min | >=10.0.0, <10.24.0>=12.0.0, <12.21.0>=14.0.0, <14.16.0>=15.0.0, <15.10.0 | 10.24.012.21.014.16.015.10.0 |
Open a package to see all its vulnerabilities.
Operating systems · 84 fixes
Oracle Linux 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | nodejs +3 | 1:14.16.0-2.module+el8.3.0+9674+b4c6acab |
| 8 | npm | 1:6.14.11-1.14.16.0.2.module+el8.3.0+9674+b4c6acab |
| 8 | nodejs-nodemon | 2.0.3-1.module+el8.3.0+9643+8c99e187 |
| 8 | nodejs-packaging | 23-3.module+el8.3.0+7818+6cd30d85 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nodejs +1 | 14.16.0-1.ph4 |
Red Hat 4 releases · 10 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | rh-nodejs10-nodejs +2 | 0:10.24.0-1.el7 | RHSA-2021:0827 |
| 7 | rh-nodejs12-nodejs +2 | 0:12.21.0-1.el7 | RHSA-2021:0831 |
| 7 | rh-nodejs14-nodejs +2 | 0:14.16.0-1.el7 | RHSA-2021:0830 |
| 7 | rh-nodejs10-npm | 0:6.14.11-10.24.0.1.el7 | RHSA-2021:0827 |
| 7 | rh-nodejs12-npm | 0:6.14.11-12.21.0.1.el7 | RHSA-2021:0831 |
| 7 | rh-nodejs14-npm | 0:6.14.11-14.16.0.1.el7 | RHSA-2021:0830 |
28 more rows
alma 2 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:10) | nodejs-nodemon | 1.18.3-1.module_el8.3.0+2023+d2377ea3 |
| 8 (nodejs:10) | nodejs-packaging | 17-3.module_el8.3.0+2023+d2377ea3 |
| 8 (nodejs:10) | nodejs +3 | 1:10.24.0-1.module_el8.3.0+2047+b07ac28e |
| 8 (nodejs:10) | npm | 1:6.14.11-1.10.24.0.1.module_el8.3.0+2047+b07ac28e |
| 8 (nodejs:12) | nodejs-nodemon | 2.0.3-1.module_el8.4.0+2521+c668cc9f |
| 8 (nodejs:12) | nodejs-packaging | 23-3.module_el8.4.0+2522+3bd42762 |
alpine 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | nodejs | 14.16.0-r0 |
| 3.22 | nodejs-current | 15.10.0-r0 |
| 3.23 | nodejs | 14.16.0-r0 |
| 3.23 | nodejs-current | 15.10.0-r0 |
| 3.24 | nodejs | 14.16.0-r0 |
| 3.24 | nodejs-current | 15.10.0-r0 |
2 more rows
debian 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | nodejs | 10.24.0~dfsg-1~deb10u1 |
| 11 | nodejs | 12.21.0~dfsg-1 |
| 12 | nodejs | 12.21.0~dfsg-1 |
| 13 | nodejs | 12.21.0~dfsg-1 |
| 14 | nodejs | 12.21.0~dfsg-1 |
| 9 | nodejs | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nodejs | 12.21.0~dfsg-1 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | nodejs14 +3 | 14.17.5-1.2 | openSUSE-SU-2024:11096-1 |
rocky 3 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:10) | nodejs-nodemon | 1.18.3-1.module+el8.3.0+101+f84c7154 |
| 8 (nodejs:10) | nodejs-packaging | 17-3.module+el8.3.0+101+f84c7154 |
| 8 (nodejs:10) | nodejs +3 | 1:10.24.0-1.module+el8.3.0+101+f84c7154 |
| 8 (nodejs:10) | npm | 1:6.14.11-1.10.24.0.1.module+el8.3.0+101+f84c7154 |
| 8 (nodejs:12) | nodejs-packaging | 17-3.module+el8.3.0+101+f84c7154 |
| 8 (nodejs:12) | nodejs +3 | 1:12.21.0-1.module+el8.3.0+99+3663d81c |
13 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-nodejs | 12.21.0~dfsg-1 |
ubuntu 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | nodejs | 8.10.0~dfsg-2ubuntu0.4+esm3 |
| 20.04 | nodejs | 10.19.0~dfsg-3ubuntu1.2 |
| 20.04-ESM | nodejs | 10.19.0~dfsg-3ubuntu1.2 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-22884
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1932014
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1932024
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1932427
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22883
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22884
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2021-0744.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2021:0744
- hackerone.com https://hackerone.com/reports/1069487
Show all 25 references
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-22884.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2021-0744.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E4FRS5ZVK4ZQ7XIJQNGIKUXG2DJFHLO7/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F45Y7TXSU33MTKB6AGL2Q5V5ZOCNPKOG/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HSYFUGKFUSZ27M5TEZ3FKILWTWFJTFAZ/
- nodejs.org https://nodejs.org/en/blog/vulnerability/february-2021-security-releases/
- nodejs.org https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/#node-js-inspector-dns-rebinding-vulnerability-cve-2018-7160
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-22884
- security.netapp.com https://security.netapp.com/advisory/ntap-20210416-0001/
- security.netapp.com https://security.netapp.com/advisory/ntap-20210723-0001/
- ubuntu.com https://ubuntu.com/security/notices/USN-6418-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-22884
- www.oracle.com https://www.oracle.com//security-alerts/cpujul2021.html
- www.oracle.com https://www.oracle.com/security-alerts/cpuApr2021.html
- www.oracle.com https://www.oracle.com/security-alerts/cpuoct2021.html
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.