cve.bz

CVE-2021-22918 Out-of-bounds Read

5.3 mediumExploit referenceEPSS 23%Fix available

Medium (5.3). EPSS 23% estimated probability of exploitation activity in the next 30 days.

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

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
23% (unchanged from 23% a week ago; 23% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-125 Out-of-bounds Read
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-22918 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-22918?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-22918?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-22918 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.*
NodeJS Nodefrom 11.0 before 11.*
NodeJS Nodefrom 12.0 before 12.22.2
NodeJS Nodefrom 13.0 before 13.*
NodeJS Nodefrom 14.0 before 14.17.2
NodeJS Nodefrom 15.0 before 15.*
NodeJS Nodefrom 16.0 before 16.4.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libuv11.24.1-1+deb10u1DSA-4936-1
Debian12, 13, 14libuv11.40.0-2DEBIAN-CVE-2021-22918
Ubuntu20.04:LTSlibuv11.34.2-1ubuntu1.3UBUNTU-CVE-2021-22918 USN-5007-1
Red Hatenterprise_linux:8::appstreamlibuv, libuv-debuginfo, libuv-debugsource1:1.41.1-1.el8_4RHSA-2021:3075
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:12.22.3-2.module+el8.4.0+11732+c668cc9fRHSA-2021:3073
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:14.17.3-2.module+el8.4.0+11738+3bd42762RHSA-2021:3074
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.3-1.module+el8.3.0+6519+9f98ed83RHSA-2021:3074
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.3-1.module+el8.4.0+11732+c668cc9fRHSA-2021:3073
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:17-3.module+el8.1.0+3369+37ae6a45RHSA-2021:3073
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:23-3.module+el8.3.0+6519+9f98ed83RHSA-2021:3074
Red Hatenterprise_linux:8::appstreamnpm1:6.14.13-1.12.22.3.2.module+el8.4.0+11732+c668cc9fRHSA-2021:3073
Red Hatenterprise_linux:8::appstreamnpm1:6.14.13-1.14.17.3.2.module+el8.4.0+11738+3bd42762RHSA-2021:3074
Red Hatenterprise_linux:8::crblibuv-devel, libuv-debuginfo, libuv-debugsource1:1.41.1-1.el8_4RHSA-2021:3075
Red Hatrhel_eus:8.1::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:12.22.5-1.module+el8.1.0+12238+63fe3aecRHSA-2021:3639
Red Hatrhel_eus:8.1::appstreamnodejs-nodemon0:1.18.3-1.module+el8.1.0+3369+37ae6a45RHSA-2021:3639
12 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 morenodejs1010.24.1-1.36.1SUSE-SU-2021:2353-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1010.24.1-1.39.1SUSE-SU-2021:2323-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1212.22.2-1.32.1SUSE-SU-2021:2326-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1414.17.2-6.12.1SUSE-SU-2021:2319-1
SUSELinux Enterprise Module for Web and Scripting 15 SP2, Linux Enterprise Module for Web and Scripting 15 SP3nodejs1212.22.2-4.16.1SUSE-SU-2021:2327-1
SUSELinux Enterprise Module for Web and Scripting 15 SP2, Linux Enterprise Module for Web and Scripting 15 SP3nodejs1414.17.2-5.12.1SUSE-SU-2021:2354-1
openSUSELeap 15.2nodejs1010.24.1-lp152.2.15.1openSUSE-SU-2021:1061-1
openSUSELeap 15.2nodejs1212.22.2-lp152.3.15.1openSUSE-SU-2021:1059-1
openSUSELeap 15.2nodejs1414.17.2-lp152.11.1openSUSE-SU-2021:1060-1
openSUSELeap 15.3nodejs1010.24.1-1.36.1openSUSE-SU-2021:2353-1
openSUSELeap 15.3nodejs1212.22.2-4.16.1openSUSE-SU-2021:2327-1
openSUSELeap 15.3nodejs1414.17.2-5.12.1openSUSE-SU-2021:2354-1
openSUSETumbleweedlibuv1.42.0-1.2openSUSE-SU-2024:11007-1
openSUSETumbleweednodejs1414.17.5-1.2openSUSE-SU-2024:11096-1
openSUSETumbleweednodejs1616.6.2-2.2openSUSE-SU-2024:11097-1
AlmaLinux8libuv, libuv-devel1:1.41.1-1.el8_4ALSA-2021:3075
AlmaLinux8nodejs-nodemon2.0.3-1.module_el8.4.0+2521+c668cc9fALSA-2021:3073 ALSA-2021:3074
AlmaLinux8nodejs-packaging17-3.module_el8.3.0+2023+d2377ea3ALSA-2021:3073
AlmaLinux8nodejs-packaging17-3.module_el8.4.0+2224+b07ac28eALSA-2021:3073
AlmaLinux8nodejs-packaging17-3.module_el8.4.0+2521+c668cc9fALSA-2021:3073
AlmaLinux8nodejs-packaging23-3.module_el8.4.0+2522+3bd42762ALSA-2021:3074
AlmaLinux8nodejs-packaging23-3.module_el8.5.0+254+b4526b16ALSA-2021:3074
Rocky Linux8libuv1:1.41.1-1.el8_4RLSA-2021:3075
Rocky Linux8nodejs1:12.22.3-2.module+el8.4.0+638+5344c6f7RLSA-2021:3073
Rocky Linux8nodejs1:14.17.3-2.module+el8.4.0+639+18660d0dRLSA-2021:3074
Rocky Linux8nodejs-nodemon0:2.0.3-1.module+el8.3.0+100+234774f7RLSA-2021:3073 RLSA-2021:3074
Rocky Linux8nodejs-nodemon0:2.0.3-1.module+el8.4.0+638+5344c6f7RLSA-2021:3073 RLSA-2021:3074
Rocky Linux8nodejs-nodemon0:2.0.3-1.module+el8.6.0+982+9fdca2d4RLSA-2021:3073 RLSA-2021:3074
Rocky Linux8nodejs-packaging0:17-3.module+el8.3.0+101+f84c7154RLSA-2021:3073
Rocky Linux8nodejs-packaging0:23-3.module+el8.3.0+100+234774f7RLSA-2021:3074
Rocky Linux8nodejs-packaging0:23-3.module+el8.5.0+733+de4fee6cRLSA-2021:3074
Rocky Linux8nodejs-packaging0:23-3.module+el8.7.0+1071+4bdda2a8RLSA-2021:3074
Alpinev3.11, v3.12nodejs12.22.2-r0ALPINE-CVE-2021-22918
Alpinev3.13, v3.14nodejs14.17.3-r0ALPINE-CVE-2021-22918
Azure Linux3pytorch2.2.2-4AZL-41581

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; Microsoft's Azure Linux vulnerability data, MIT. 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 Low.

Red Hat's statement

As distributed by Red Hat, a maximum of 3 bytes out of bound can be read. This would not be sufficient to crash nodejs or other applications using libuv, unless it was recompiled using an address sanitizer. The memory disclosure is also very limited.

Red Hat Quay version 3.5 does not ship nodejs. Red Hat Quay 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 nodejs as a HTTP server.

[1] https://catalog.redhat.com/software/containers/quay/quay-rhel8/600e03aadd19c7786c43ae49?container-tabs=security

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:12-8040020210708131418.522a0ee4Fixed 2021-08-10RHSA-2021:3073
Red Hat Enterprise Linux 8nodejs:14-8040020210708154809.522a0ee4Fixed 2021-08-10RHSA-2021:3074
Red Hat Enterprise Linux 8libuv-1:1.41.1-1.el8_4Fixed 2021-08-10RHSA-2021:3075
Red Hat Enterprise Linux 8.1 Extended Update Supportnodejs:12-8010020210817113128.c27ad7f8Fixed 2021-09-22RHSA-2021:3639
Red Hat Enterprise Linux 8.2 Extended Update Supportnodejs:12-8020020210817125332.4cda2c84Fixed 2021-09-22RHSA-2021:3638
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs12-nodejs-0:12.22.2-1.el7Fixed 2021-07-28RHSA-2021:2931
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs12-nodejs-nodemon-0:2.0.3-2.el7Fixed 2021-07-28RHSA-2021:2931
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-nodejs-0:14.17.2-1.el7Fixed 2021-07-28RHSA-2021:2932
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-nodejs-nodemon-0:2.0.3-2.el7Fixed 2021-07-28RHSA-2021:2932
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-nodejs12-nodejs-0:12.22.2-1.el7Fixed 2021-07-28RHSA-2021:2931
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-nodejs12-nodejs-nodemon-0:2.0.3-2.el7Fixed 2021-07-28RHSA-2021:2931
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-nodejs14-nodejs-0:14.17.2-1.el7Fixed 2021-07-28RHSA-2021:2932
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-nodejs14-nodejs-nodemon-0:2.0.3-2.el7Fixed 2021-07-28RHSA-2021:2932
A-MQ Clients 2libuvFix deferred
A-MQ Interconnect 1libuvFix deferred
Red Hat Enterprise Linux 8nodejs:16/nodejsNot affected
Red Hat Enterprise Linux 9libuvNot affected
Red Hat Enterprise Linux 9nodejsNot affected
Red Hat OpenStack Platform 13 (Queens) Operational ToolslibuvOut of support scope
Red Hat Quay 3nodejsWill 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-22918.

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-540 Overread Buffers Likelihood: Low · Severity: High

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

References

Check your stackJSON