Skip to content
OpenAdvisories
Unscored CVE-2021-22918 EUVD-2021-10047GHSA-x3cj-3539-rcpx

Node.js before 16.4.1, 14.17.2, 12.22.2 is vulnerable to an out-of-bounds read when uv__idna_toascii() is used to convert strings to ASCII.…

Published Jul 12, 2021 · Updated Apr 30, 2025 · Assigned by hackerone

Description

Node.js before 16.4.1, 14.17.2, 12.22.2 is vulnerable to an out-of-bounds read when uv__idna_toascii() is used to convert strings to ASCII. The pointer p is read and increased without checking whether it is beyond pe, with the latter holding a pointer to the end of the buffer. This can lead to information disclosures or crashes. This function can be triggered via uv_getaddrinfo().

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.*, 11.0 – < 11.*, 12.0 – < 12.22.2, 13.0 – < 13.*, 14.0 – < 14.17.2, 15.0 – < 15.*, 16.0 – < 16.4.1 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 libuv1 1.40.0-2 —
Debian 13 libuv1 1.40.0-2 —
Debian 12 libuv1 1.40.0-2 —
Debian 10 libuv1 1.24.1-1+deb10u1 DSA-4936-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libuv1 1.34.2-1ubuntu1.3 USN-5007-1
ReleasePackageFixed inAdvisory
RHEL 8 libuv +1 1:1.41.1-1.el8_4 RHSA-2021:3075
RHEL 8 nodejs +3 1:12.22.3-2.module+el8.4.0+11732+c668cc9f RHSA-2021:3074, RHSA-2021:3073
RHEL 8 nodejs-nodemon 2.0.3-1.module+el8.3.0+6519+9f98ed83 RHSA-2021:3074, RHSA-2021:3073
RHEL 8 nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45 RHSA-2021:3074, RHSA-2021:3073
RHEL 8 npm 1:6.14.13-1.12.22.3.2.module+el8.4.0+11732+c668cc9f RHSA-2021:3074, RHSA-2021:3073
RHEL 3 rh-nodejs12-nodejs +2 12.22.2-1.el7 RHSA-2021:2931
RHEL 3 rh-nodejs12-nodejs-nodemon +1 2.0.3-2.el7 RHSA-2021:2932, RHSA-2021:2931
RHEL 3 rh-nodejs12-npm 6.14.13-12.22.2.1.el7 RHSA-2021:2931
RHEL 3 rh-nodejs14-nodejs +2 14.17.2-1.el7 RHSA-2021:2932
RHEL 3 rh-nodejs14-npm 6.14.13-14.17.2.1.el7 RHSA-2021:2932
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.2 EUS nodejs +3 1:12.22.5-1.module+el8.2.0+12241+a3db445b RHSA-2021:3638
RHEL 8.2 EUS nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45 RHSA-2021:3638
RHEL 8.2 EUS nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45 RHSA-2021:3638
RHEL 8.2 EUS npm 1:6.14.14-1.12.22.5.1.module+el8.2.0+12241+a3db445b RHSA-2021:3638
RHEL 8.1 EUS nodejs +3 1:12.22.5-1.module+el8.1.0+12238+63fe3aec RHSA-2021:3639
RHEL 8.1 EUS nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45 RHSA-2021:3639
RHEL 8.1 EUS nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45 RHSA-2021:3639
RHEL 8.1 EUS npm 1:6.14.14-1.12.22.5.1.module+el8.1.0+12238+63fe3aec RHSA-2021:3639

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 libuv +1 1:1.41.1-1.el8_4 ALSA-2021:3075
AlmaLinux 8 nodejs-nodemon 2.0.3-1.module_el8.4.0+2521+c668cc9f ALSA-2021:3074, ALSA-2021:3073
AlmaLinux 8 nodejs-packaging 17-3.module_el8.3.0+2023+d2377ea3 ALSA-2021:3074, ALSA-2021:3073

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libuv 1:1.41.1-1.el8_4 RLSA-2021:3075
Rocky Linux 8 nodejs 1:12.22.3-2.module+el8.4.0+638+5344c6f7 RLSA-2021:3074, RLSA-2021:3073
Rocky Linux 8 nodejs-nodemon 2.0.3-1.module+el8.3.0+100+234774f7 RLSA-2021:3074, RLSA-2021:3073
Rocky Linux 8 nodejs-packaging 17-3.module+el8.3.0+101+f84c7154 RLSA-2021:3074, RLSA-2021:3073
ReleasePackageFixed inAdvisory
SLES 15 SP3 nodejs12 12.22.2-4.16.1 SUSE-SU-2021:2327-1
SLES 15 SP3 nodejs14 14.17.2-5.12.1 SUSE-SU-2021:2354-1
SLES 15 SP2 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SLES 15 SP2 nodejs12 12.22.2-4.16.1 SUSE-SU-2021:2327-1
SLES 15 SP2 nodejs14 14.17.2-5.12.1 SUSE-SU-2021:2354-1
SLES 15 SP1 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SLES 15 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SLES 12 nodejs10 10.24.1-1.39.1 SUSE-SU-2021:2323-1
SLES 12 nodejs12 12.22.2-1.32.1 SUSE-SU-2021:2326-1
SLES 12 nodejs14 14.17.2-6.12.1 SUSE-SU-2021:2319-1
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP1 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SLES for SAP 15 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SLE HPC 15 SP1 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SLE HPC 15 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SUSE Manager Server 4.0 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SUSE Manager Retail Branch Server 4.0 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SUSE Manager Proxy 4.0 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
SUSE Enterprise Storage 6 nodejs10 10.24.1-1.36.1 SUSE-SU-2021:2353-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libuv 1.42.0-1.2 openSUSE-SU-2024:11007-1
openSUSE Tumbleweed nodejs14 14.17.5-1.2 openSUSE-SU-2024:11096-1
openSUSE Tumbleweed nodejs16 16.6.2-2.2 openSUSE-SU-2024:11097-1
openSUSE Leap 15.3 nodejs10 10.24.1-1.36.1 openSUSE-SU-2021:2353-1
openSUSE Leap 15.3 nodejs12 12.22.2-4.16.1 openSUSE-SU-2021:2327-1
openSUSE Leap 15.3 nodejs14 14.17.2-5.12.1 openSUSE-SU-2021:2354-1
openSUSE Leap 15.2 nodejs10 10.24.1-lp152.2.15.1 openSUSE-SU-2021:1061-1
openSUSE Leap 15.2 nodejs12 12.22.2-lp152.3.15.1 openSUSE-SU-2021:1059-1
openSUSE Leap 15.2 nodejs14 14.17.2-lp152.11.1 openSUSE-SU-2021:1060-1
ReleasePackageFixed inAdvisory
Alpine v3.14 nodejs 14.17.3-r0 —
Alpine v3.13 nodejs 14.17.3-r0 —
Alpine v3.12 nodejs 12.22.2-r0 —
Alpine v3.11 nodejs 12.22.2-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 libuv +2 1:1.39.0-1.amzn2.0.1 ALAS2-2024-2410

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 pytorch 2.2.2-4 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 libuv +1 1:1.41.1-1.el8_4 ELSA-2021-3075
Oracle Linux 8 nodejs +3 1:12.22.3-2.module+el8.4.0+20281+eb64e322 ELSA-2021-3074, ELSA-2021-3073
Oracle Linux 8 nodejs-nodemon 2.0.3-1.module+el8.3.0+7818+6cd30d85 ELSA-2021-3074, ELSA-2021-3073
Oracle Linux 8 nodejs-packaging 17-3.module+el8.1.0+5393+aaf413e3 ELSA-2021-3074, ELSA-2021-3073
Oracle Linux 8 npm 1:6.14.13-1.12.22.3.2.module+el8.4.0+20281+eb64e322 ELSA-2021-3074, ELSA-2021-3073

Advisories 39

References