cve.bz

CVE-2021-22884

7.5 highExploit referenceEPSS 37%Fix available

High (7.5). EPSS 37% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
37% (unchanged from 37% a week ago; 37% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-350 Reliance on Reverse DNS Resolution for a Security-Critical Action
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-22884 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-22884?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-22884?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-22884 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
NodeJS Nodefrom 4.0 before 4.*
NodeJS Nodefrom 5.0 before 5.*
NodeJS Nodefrom 6.0 before 6.*
NodeJS Nodefrom 7.0 before 7.*
NodeJS Nodefrom 8.0 before 8.*
NodeJS Nodefrom 9.0 before 9.*
NodeJS Nodefrom 10.0 before 10.24.0
NodeJS Nodefrom 11.0 before 11.*
NodeJS Nodefrom 12.0 before 12.21.0
NodeJS Nodefrom 13.0 before 13.*
NodeJS Nodefrom 14.0 before 14.16.0
NodeJS Nodefrom 15.0 before 15.10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10nodejs10.24.0~dfsg-1~deb10u1DSA-4863-1
Debian12, 13, 14nodejs12.21.0~dfsg-1DEBIAN-CVE-2021-22884
Ubuntu20.04:LTSnodejs10.19.0~dfsg-3ubuntu1.2UBUNTU-CVE-2021-22884 USN-6418-1
UbuntuPro:18.04:LTSnodejs8.10.0~dfsg-2ubuntu0.4+esm3UBUNTU-CVE-2021-22884 USN-6418-1
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:10.24.0-1.module+el8.3.0+10166+b07ac28eRHSA-2021:0735
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:12.21.0-1.module+el8.3.0+10191+34fb5a07RHSA-2021:0734
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:14.16.0-2.module+el8.3.0+10180+b92e1eb6RHSA-2021:0744
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:1.18.3-1.module+el8+2632+6c5111edRHSA-2021:0735
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.3-1.module+el8.3.0+6519+9f98ed83RHSA-2021:0744
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.3-1.module+el8.3.0+9715+1718613fRHSA-2021:0734
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:17-3.module+el8+2873+aa7dfd9aRHSA-2021:0735
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:17-3.module+el8.1.0+3369+37ae6a45RHSA-2021:0734
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:23-3.module+el8.3.0+6519+9f98ed83RHSA-2021:0744
Red Hatenterprise_linux:8::appstreamnpm1:6.14.11-1.10.24.0.1.module+el8.3.0+10166+b07ac28eRHSA-2021:0735
Red Hatenterprise_linux:8::appstreamnpm1:6.14.11-1.12.21.0.1.module+el8.3.0+10191+34fb5a07RHSA-2021:0734
Red Hatenterprise_linux:8::appstreamnpm1:6.14.11-1.14.16.0.2.module+el8.3.0+10180+b92e1eb6RHSA-2021:0744
22 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 11 morenodejs-common2.0-3.2.1SUSE-SU-2021:2620-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 11 morenodejs1010.24.0-1.33.2SUSE-SU-2021:0674-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 morenodejs88.17.0-3.47.2SUSE-SU-2021:2620-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1010.24.0-1.36.2SUSE-SU-2021:0673-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1212.21.0-1.29.2SUSE-SU-2021:0649-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1414.16.0-6.9.2SUSE-SU-2021:0650-1
SUSELinux Enterprise Module for Web and Scripting 15 SP2nodejs1212.21.0-4.13.2SUSE-SU-2021:0651-1
SUSELinux Enterprise Module for Web and Scripting 15 SP2nodejs1414.16.0-5.9.1SUSE-SU-2021:0648-1
SUSELinux Enterprise Module for Web and Scripting 15 SP2nodejs88.17.0-10.9.2SUSE-SU-2021:0686-1
openSUSELeap 15.2nodejs1010.24.0-lp152.2.12.1openSUSE-SU-2021:0372-1
openSUSELeap 15.2nodejs1212.21.0-lp152.3.12.1openSUSE-SU-2021:0357-1
openSUSELeap 15.2nodejs1414.16.0-lp152.8.1openSUSE-SU-2021:0356-1
openSUSELeap 15.2nodejs88.17.0-lp152.3.11.1openSUSE-SU-2021:0389-1
openSUSETumbleweednodejs1414.17.5-1.2openSUSE-SU-2024:11096-1
AlmaLinux8nodejs, nodejs-devel, nodejs-full-i18n1:10.24.0-1.module_el8.4.0+2224+b07ac28eALSA-2021:0735
AlmaLinux8nodejs, nodejs-devel, nodejs-full-i18n1:10.24.0-1.module_el8.5.0+81+7dbe79d3ALSA-2021:0735
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:10.24.0-1.module_el8.3.0+2047+b07ac28eALSA-2021:0735
AlmaLinux8nodejs-nodemon1.18.3-1.module_el8.3.0+2023+d2377ea3ALSA-2021:0735
AlmaLinux8nodejs-nodemon1.18.3-1.module_el8.3.0+2047+b07ac28eALSA-2021:0735
AlmaLinux8nodejs-nodemon2.0.3-1.module_el8.4.0+2521+c668cc9fALSA-2021:0734 ALSA-2021:0744
AlmaLinux8nodejs-packaging17-3.module_el8.3.0+2023+d2377ea3ALSA-2021:0734 ALSA-2021:0735
AlmaLinux8nodejs-packaging17-3.module_el8.4.0+2224+b07ac28eALSA-2021:0734 ALSA-2021:0735
AlmaLinux8nodejs-packaging17-3.module_el8.4.0+2521+c668cc9fALSA-2021:0734 ALSA-2021:0735
AlmaLinux8nodejs-packaging23-3.module_el8.4.0+2522+3bd42762ALSA-2021:0744
AlmaLinux8nodejs-packaging23-3.module_el8.5.0+254+b4526b16ALSA-2021:0744
AlmaLinux8npm1:6.14.11-1.10.24.0.1.module_el8.3.0+2047+b07ac28eALSA-2021:0735
2 more for AlmaLinux in the JSON.
Rocky Linux8nodejs1:10.24.0-1.module+el8.3.0+101+f84c7154RLSA-2021:0735
Rocky Linux8nodejs1:12.21.0-1.module+el8.3.0+99+3663d81cRLSA-2021:0734
Rocky Linux8nodejs1:14.16.0-2.module+el8.3.0+100+234774f7RLSA-2021:0744
Rocky Linux8nodejs-nodemon0:1.18.3-1.module+el8.3.0+101+f84c7154RLSA-2021:0735
Rocky Linux8nodejs-nodemon0:2.0.3-1.module+el8.3.0+100+234774f7RLSA-2021:0734 RLSA-2021:0744
Rocky Linux8nodejs-nodemon0:2.0.3-1.module+el8.4.0+638+5344c6f7RLSA-2021:0734 RLSA-2021:0744
Rocky Linux8nodejs-nodemon0:2.0.3-1.module+el8.6.0+982+9fdca2d4RLSA-2021:0734 RLSA-2021:0744
Rocky Linux8nodejs-packaging0:17-3.module+el8.3.0+101+f84c7154RLSA-2021:0734 RLSA-2021:0735
Rocky Linux8nodejs-packaging0:23-3.module+el8.3.0+100+234774f7RLSA-2021:0744
Rocky Linux8nodejs-packaging0:23-3.module+el8.5.0+733+de4fee6cRLSA-2021:0744
Rocky Linux8nodejs-packaging0:23-3.module+el8.7.0+1071+4bdda2a8RLSA-2021:0744
Alpinev3.11, v3.12nodejs12.21.0-r0ALPINE-CVE-2021-22884
Alpinev3.13, v3.14, v3.15 and 9 morenodejs14.16.0-r0ALPINE-CVE-2021-22884
Alpinev3.13, v3.14, v3.15 and 9 morenodejs-current15.10.0-r0ALPINE-CVE-2021-22884

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's 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

Red Hat's mitigation

Ensure that 'localhost6' is part of /etc/hosts.

e.g.:

```

$ grep localhost6 /etc/hosts

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

```

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:12-8030020210302104621.229f0a1cFixed 2021-03-04RHSA-2021:0734
Red Hat Enterprise Linux 8nodejs:10-8030020210225164533.229f0a1cFixed 2021-03-04RHSA-2021:0735
Red Hat Enterprise Linux 8nodejs:14-8030020210301172147.229f0a1cFixed 2021-03-08RHSA-2021:0744
Red Hat Enterprise Linux 8.1 Extended Update Supportnodejs:12-8010020210302113522.c27ad7f8Fixed 2021-03-08RHSA-2021:0739
Red Hat Enterprise Linux 8.1 Extended Update Supportnodejs:10-8010020210225115101.c27ad7f8Fixed 2021-03-08RHSA-2021:0741
Red Hat Enterprise Linux 8.2 Extended Update Supportnodejs:10-8020020210225153906.4cda2c84Fixed 2021-03-08RHSA-2021:0738
Red Hat Enterprise Linux 8.2 Extended Update Supportnodejs:12-8020020210302112530.4cda2c84Fixed 2021-03-08RHSA-2021:0740
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs10-nodejs-0:10.24.0-1.el7Fixed 2021-03-15RHSA-2021:0827
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-nodejs-0:14.16.0-1.el7Fixed 2021-03-15RHSA-2021:0830
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs12-nodejs-0:12.21.0-1.el7Fixed 2021-03-15RHSA-2021:0831
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-nodejs10-nodejs-0:10.24.0-1.el7Fixed 2021-03-15RHSA-2021:0827
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-nodejs14-nodejs-0:14.16.0-1.el7Fixed 2021-03-15RHSA-2021:0830
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-nodejs12-nodejs-0:12.21.0-1.el7Fixed 2021-03-15RHSA-2021:0831
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-nodejs10-nodejs-0:10.24.0-1.el7Fixed 2021-03-15RHSA-2021:0827
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-nodejs14-nodejs-0:14.16.0-1.el7Fixed 2021-03-15RHSA-2021:0830
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-nodejs12-nodejs-0:12.21.0-1.el7Fixed 2021-03-15RHSA-2021:0831
Red Hat Enterprise Linux 9nodejsNot affected
Red Hat Quay 3quay/quay-rhel8Will not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-22884.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-069-09Siemens SINEC INS2022-03-08MultipleSINEC INSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-89 Pharming Likelihood: High · Severity: Very High
  • CAPEC-142 DNS Cache Poisoning Likelihood: High · Severity: High
  • CAPEC-275 DNS Rebinding Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON