Skip to content
OpenAdvisories
Unscored CVE-2021-22883 EUVD-2021-10016GHSA-mjgw-69fr-p4h2

Node.js before 10.24.0, 12.21.0, 14.16.0, and 15.10.0 is vulnerable to a denial of service attack when too many connection attempts with an…

Published Mar 3, 2021 · Updated Apr 30, 2025 · Assigned by hackerone

Description

Node.js before 10.24.0, 12.21.0, 14.16.0, and 15.10.0 is vulnerable to a denial of service attack when too many connection attempts with an 'unknownProtocol' are established. This leads to a leak of file descriptors. If a file descriptor limit is configured on the system, then the server is unable to accept new connections and prevent the process also from opening, e.g. a file. If no file descriptor limit is configured, then this lead to an excessive memory usage and cause the system to run out of memory.

Affected products

VendorProductAffectedFixed
NodeJS Node 4.0 – < 4.*, 5.0 – < 5.*, 6.0 – < 6.*, 7.0 – < 7.*, 8.0 – < 8.*, 9.0 – < 9.*, 10.0 – < 10.24.0, 11.0 – < 11.*, 12.0 – < 12.21.0, 13.0 – < 13.*, 14.0 – < 14.16.0, 15.0 – < 15.10.0 4.*

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nodejs 12.21.0~dfsg-1 —
Debian 13 nodejs 12.21.0~dfsg-1 —
Debian 12 nodejs 12.21.0~dfsg-1 —
Debian 10 nodejs 10.24.0~dfsg-1~deb10u1 DSA-4863-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS nodejs 10.19.0~dfsg-3ubuntu1.2 USN-6418-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS nodejs 8.10.0~dfsg-2ubuntu0.4+esm3 USN-6418-1
ReleasePackageFixed inAdvisory
RHEL 8 nodejs +3 1:10.24.0-1.module+el8.3.0+10166+b07ac28e RHSA-2021:0744, RHSA-2021:0735, RHSA-2021:0734
RHEL 8 nodejs-nodemon 1.18.3-1.module+el8+2632+6c5111ed RHSA-2021:0744, RHSA-2021:0735, RHSA-2021:0734
RHEL 8 nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45 RHSA-2021:0744, RHSA-2021:0735, RHSA-2021:0734
RHEL 8 npm 1:6.14.11-1.10.24.0.1.module+el8.3.0+10166+b07ac28e RHSA-2021:0744, RHSA-2021:0735, RHSA-2021:0734
RHEL 3 rh-nodejs10-nodejs +2 10.24.0-1.el7 RHSA-2021:0827
RHEL 3 rh-nodejs10-npm 6.14.11-10.24.0.1.el7 RHSA-2021:0827
RHEL 3 rh-nodejs12-nodejs +2 12.21.0-1.el7 RHSA-2021:0831
RHEL 3 rh-nodejs12-npm 6.14.11-12.21.0.1.el7 RHSA-2021:0831
RHEL 3 rh-nodejs14-nodejs +2 14.16.0-1.el7 RHSA-2021:0830
RHEL 3 rh-nodejs14-npm 6.14.11-14.16.0.1.el7 RHSA-2021:0830
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.2 EUS nodejs +3 1:10.24.0-1.module+el8.2.0+10165+019e8570 RHSA-2021:0740, RHSA-2021:0738
RHEL 8.2 EUS nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45 RHSA-2021:0740, RHSA-2021:0738
RHEL 8.2 EUS nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45 RHSA-2021:0740, RHSA-2021:0738
RHEL 8.2 EUS npm 1:6.14.11-1.10.24.0.1.module+el8.2.0+10165+019e8570 RHSA-2021:0740, RHSA-2021:0738
RHEL 8.1 EUS nodejs +3 1:10.24.0-1.module+el8.1.0+10161+5cffdac6 RHSA-2021:0741, RHSA-2021:0739
RHEL 8.1 EUS nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45 RHSA-2021:0741, RHSA-2021:0739
RHEL 8.1 EUS nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45 RHSA-2021:0741, RHSA-2021:0739
RHEL 8.1 EUS npm 1:6.14.11-1.10.24.0.1.module+el8.1.0+10161+5cffdac6 RHSA-2021:0741, RHSA-2021:0739

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 nodejs +3 1:10.24.0-1.module_el8.3.0+2047+b07ac28e ALSA-2021:0735
AlmaLinux 8 nodejs-nodemon 1.18.3-1.module_el8.3.0+2023+d2377ea3 ALSA-2021:0744, ALSA-2021:0735, ALSA-2021:0734
AlmaLinux 8 nodejs-packaging 17-3.module_el8.3.0+2023+d2377ea3 ALSA-2021:0744, ALSA-2021:0735, ALSA-2021:0734
AlmaLinux 8 npm 1:6.14.11-1.10.24.0.1.module_el8.3.0+2047+b07ac28e ALSA-2021:0735

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 nodejs 1:10.24.0-1.module+el8.3.0+101+f84c7154 RLSA-2021:0744, RLSA-2021:0735, RLSA-2021:0734
Rocky Linux 8 nodejs-nodemon 1.18.3-1.module+el8.3.0+101+f84c7154 RLSA-2021:0744, RLSA-2021:0735, RLSA-2021:0734
Rocky Linux 8 nodejs-packaging 17-3.module+el8.3.0+101+f84c7154 RLSA-2021:0744, RLSA-2021:0735, RLSA-2021:0734
ReleasePackageFixed inAdvisory
SLES 15 SP2 nodejs10 10.24.0-1.33.2 SUSE-SU-2021:0674-1
SLES 15 SP2 nodejs12 12.21.0-4.13.2 SUSE-SU-2021:0651-1
SLES 15 SP2 nodejs14 14.16.0-5.9.1 SUSE-SU-2021:0648-1
SLES 15 SP1 nodejs10 10.24.0-1.33.2 SUSE-SU-2021:0674-1
SLES 15 nodejs10 10.24.0-1.33.2 SUSE-SU-2021:0674-1
SLES 12 nodejs10 10.24.0-1.36.2 SUSE-SU-2021:0673-1
SLES 12 nodejs12 12.21.0-1.29.2 SUSE-SU-2021:0649-1
SLES 12 nodejs14 14.16.0-6.9.2 SUSE-SU-2021:0650-1
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP1 nodejs10 10.24.0-1.33.2 SUSE-SU-2021:0674-1
SLES for SAP 15 nodejs10 10.24.0-1.33.2 SUSE-SU-2021:0674-1
SLE HPC 15 SP1 nodejs10 10.24.0-1.33.2 SUSE-SU-2021:0674-1
SLE HPC 15 nodejs10 10.24.0-1.33.2 SUSE-SU-2021:0674-1
SUSE Manager Server 4.0 nodejs10 10.24.0-1.33.2 SUSE-SU-2021:0674-1
SUSE Manager Retail Branch Server 4.0 nodejs10 10.24.0-1.33.2 SUSE-SU-2021:0674-1
SUSE Manager Proxy 4.0 nodejs10 10.24.0-1.33.2 SUSE-SU-2021:0674-1
SUSE Enterprise Storage 6 nodejs10 10.24.0-1.33.2 SUSE-SU-2021:0674-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nodejs14 14.17.5-1.2 openSUSE-SU-2024:11096-1
openSUSE Leap 15.2 nodejs10 10.24.0-lp152.2.12.1 openSUSE-SU-2021:0372-1
openSUSE Leap 15.2 nodejs12 12.21.0-lp152.3.12.1 openSUSE-SU-2021:0357-1
openSUSE Leap 15.2 nodejs14 14.16.0-lp152.8.1 openSUSE-SU-2021:0356-1
ReleasePackageFixed inAdvisory
Alpine v3.24 nodejs 14.16.0-r0 —
Alpine v3.24 nodejs-current 15.10.0-r0 —
Alpine v3.23 nodejs 14.16.0-r0 —
Alpine v3.23 nodejs-current 15.10.0-r0 —
Alpine v3.22 nodejs 14.16.0-r0 —
Alpine v3.22 nodejs-current 15.10.0-r0 —
Alpine v3.21 nodejs 14.16.0-r0 —
Alpine v3.21 nodejs-current 15.10.0-r0 —
Alpine v3.20 nodejs 14.16.0-r0 —
Alpine v3.20 nodejs-current 15.10.0-r0 —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 nodejs 14.16.0-r0 —
Alpine v3.19 nodejs-current 15.10.0-r0 —
Alpine v3.18 nodejs 14.16.0-r0 —
Alpine v3.18 nodejs-current 15.10.0-r0 —
Alpine v3.17 nodejs 14.16.0-r0 —
Alpine v3.17 nodejs-current 15.10.0-r0 —
Alpine v3.16 nodejs 14.16.0-r0 —
Alpine v3.16 nodejs-current 15.10.0-r0 —
Alpine v3.15 nodejs 14.16.0-r0 —
Alpine v3.15 nodejs-current 15.10.0-r0 —
Alpine v3.14 nodejs 14.16.0-r0 —
Alpine v3.14 nodejs-current 15.10.0-r0 —
Alpine v3.13 nodejs 14.16.0-r0 —
Alpine v3.13 nodejs-current 15.10.0-r0 —
Alpine v3.12 nodejs 12.21.0-r0 —
Alpine v3.11 nodejs 12.21.0-r0 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 nodejs +3 1:10.24.0-1.module+el8.3.0+9671+154373c8 ELSA-2021-0744, ELSA-2021-0735, ELSA-2021-0734
Oracle Linux 8 nodejs-nodemon 1.18.3-1.module+el8.1.0+5392+4d6b561f ELSA-2021-0744, ELSA-2021-0735, ELSA-2021-0734
Oracle Linux 8 nodejs-packaging 17-3.module+el8.1.0+5392+4d6b561f ELSA-2021-0744, ELSA-2021-0735, ELSA-2021-0734
Oracle Linux 8 npm 1:6.14.11-1.10.24.0.1.module+el8.3.0+9671+154373c8 ELSA-2021-0744, ELSA-2021-0735, ELSA-2021-0734

Advisories 36

References