CVEfocus › CVE database › CVE-2021-22918

CVE-2021-22918

EPSS 23.1% (higher than 98% of CVEs)Published 2021-07-12Updated 2025-04-30Assigner: hackerone

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().

CWE-125

What to do

Likely to be exploited: EPSS gives a 23% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

25Fixed
13Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04libuv1Fixed1.34.2-1ubuntu1.3UBUNTU-CVE-2021-22918
Ubuntu 18.04libuv1Not affected
vulnerable_code_not_present
Ubuntu 16.04libuv1Not affected
vulnerable_code_not_present
Debian 14libuv1Fixed1.40.0-2DEBIAN-CVE-2021-22918
Debian 13libuv1Fixed1.40.0-2DEBIAN-CVE-2021-22918
Debian 12libuv1Fixed1.40.0-2DEBIAN-CVE-2021-22918
Red Hat Enterprise Linux 9libuvNot affected
Red Hat Enterprise Linux 9libuv-develNot affected
Red Hat Enterprise Linux 9nodejsNot affected
Red Hat Enterprise Linux 9nodejs-docsNot affected
Red Hat Enterprise Linux 9nodejs-full-i18nNot affected
Red Hat Enterprise Linux 9nodejs-libsNot affected
Red Hat Enterprise Linux 9npmNot affected
Red Hat Enterprise Linux 8libuvFixed1:1.41.1-1.el8_4RHSA-2021:3075
Red Hat Enterprise Linux 8libuv-develFixed1:1.41.1-1.el8_4RHSA-2021:3075
Red Hat Enterprise Linux 8nodejsFixed1:14.17.3-2.module+el8.4.0+11738+3bd42762RHSA-2021:3073
Red Hat Enterprise Linux 8nodejs-develFixed1:14.17.3-2.module+el8.4.0+11738+3bd42762RHSA-2021:3073
Red Hat Enterprise Linux 8nodejs-docsFixed1:14.17.3-2.module+el8.4.0+11738+3bd42762RHSA-2021:3073
Red Hat Enterprise Linux 8nodejs-full-i18nFixed1:14.17.3-2.module+el8.4.0+11738+3bd42762RHSA-2021:3073
Red Hat Enterprise Linux 8nodejs-libsNot affected
Red Hat Enterprise Linux 8nodejs-nodemonFixed0:2.0.3-1.module+el8.4.0+11732+c668cc9fRHSA-2021:3074
Red Hat Enterprise Linux 8nodejs-packagingFixed0:17-3.module+el8.1.0+3369+37ae6a45RHSA-2021:3074
Red Hat Enterprise Linux 8nodejs-packaging-bundlerNot affected
Red Hat Enterprise Linux 8npmFixed1:6.14.13-1.14.17.3.2.module+el8.4.0+11738+3bd42762RHSA-2021:3073
Red Hat Enterprise Linux 8v8-12.4-develNot affected
Red Hat Enterprise Linux 8v8-13.6-develNot affected
AlmaLinux 8libuvFixed1:1.41.1-1.el8_4ALSA-2021:3075
AlmaLinux 8libuv-develFixed1:1.41.1-1.el8_4ALSA-2021:3075
AlmaLinux 8nodejs-nodemonFixed2.0.3-1.module_el8.4.0+2521+c668cc9fALSA-2021:3074
AlmaLinux 8nodejs-packagingFixed17-3.module_el8.3.0+2023+d2377ea3ALSA-2021:3073
Rocky Linux 8libuvFixed1:1.41.1-1.el8_4RLSA-2021:3075
Rocky Linux 8nodejsFixed1:12.22.3-2.module+el8.4.0+638+5344c6f7RLSA-2021:3074
Rocky Linux 8nodejs-nodemonFixed0:2.0.3-1.module+el8.6.0+982+9fdca2d4RLSA-2021:3074
Rocky Linux 8nodejs-packagingFixed0:17-3.module+el8.3.0+101+f84c7154RLSA-2021:3074
Alpine Linux 3.14nodejsFixed14.17.3-r0ALPINE-CVE-2021-22918
Alpine Linux 3.13nodejsFixed14.17.3-r0ALPINE-CVE-2021-22918
Alpine Linux 3.12nodejsFixed12.22.2-r0ALPINE-CVE-2021-22918
Alpine Linux 3.11nodejsFixed12.22.2-r0ALPINE-CVE-2021-22918

What the vendor says

As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.