Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2021-22918

libuv: out-of-bounds read in uv__idna_toascii() can lead to information disclosures or crashes

Overview

Published
12 Jul 2021
Modified
17 Jun 2026
Medium CVE
2 Registry packages
30 OS packages
10 Linux distributions
Yes Fix available

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

Source: OX vulnerability database

Severity

5.3 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Weakness: CWE-125

Affected packages · 2

Packages affected by CVE-2021-22918
EcosystemPackageVulnerableFixed in
Bitnami node >=12.0.0, <12.22.2>=14.0.0, <14.17.2>=16.0.0, <16.4.1 12.22.214.17.216.4.1
Bitnami node-min >=12.0.0, <12.22.2>=14.0.0, <14.17.2>=16.0.0, <16.4.1 12.22.214.17.216.4.1

Open a package to see all its vulnerabilities.

Operating systems · 65 fixes

Azure Linux 1 release · 1 package

fixed 1
pytorch
Azure Linux fixes for CVE-2021-22918
ReleasePackageFixed in
3.0 pytorch 0:2.2.2-4.azl3

Oracle Linux 1 release · 5 packages

fixed 5
libuv nodejs npm nodejs-nodemon nodejs-packaging
Oracle Linux fixes for CVE-2021-22918
ReleasePackageFixed in
8 libuv +1 1:1.41.1-1.el8_4
8 nodejs +3 1:14.17.3-2.module+el8.4.0+20278+965e0649
8 npm 1:6.14.13-1.14.17.3.2.module+el8.4.0+20278+965e0649
8 nodejs-nodemon 2.0.3-1.module+el8.4.0+20281+eb64e322
8 nodejs-packaging 23-3.module+el8.3.0+7818+6cd30d85

Photon OS 1 release · 1 package

fixed 1
nodejs
Photon OS fixes for CVE-2021-22918
ReleasePackageFixed in
4.0 nodejs +1 14.16.0-2.ph4

Red Hat 5 releases · 11 packages

affected 3 eol 1 fixed 23
libuv rh-nodejs12-nodejs rh-nodejs14-nodejs rh-nodejs12-nodejs-nodemon rh-nodejs14-nodejs-nodemon rh-nodejs12-npm +5
Red Hat fixes for CVE-2021-22918
ReleasePackageFixed inAdvisory
7 libuv affected —
7 libuv eol —
7 rh-nodejs12-nodejs +2 0:12.22.2-1.el7 RHSA-2021:2931
7 rh-nodejs14-nodejs +2 0:14.17.2-1.el7 RHSA-2021:2932
7 rh-nodejs12-nodejs-nodemon 0:2.0.3-2.el7 RHSA-2021:2931
7 rh-nodejs14-nodejs-nodemon 0:2.0.3-2.el7 RHSA-2021:2932

21 more rows

alma 2 releases · 3 packages

fixed 3
libuv nodejs-nodemon nodejs-packaging
alma fixes for CVE-2021-22918
ReleasePackageFixed in
8 libuv +1 1:1.41.1-1.el8_4
8 (nodejs:12) nodejs-nodemon 2.0.3-1.module_el8.4.0+2521+c668cc9f
8 (nodejs:12) nodejs-packaging 23-3.module_el8.4.0+2522+3bd42762

debian 5 releases · 1 package

fixed 5
libuv1
debian fixes for CVE-2021-22918
ReleasePackageFixed in
10 libuv1 1.24.1-1+deb10u1
11 libuv1 1.40.0-2
12 libuv1 1.40.0-2
13 libuv1 1.40.0-2
14 libuv1 1.40.0-2

echo 1 release · 1 package

fixed 1
libuv1
echo fixes for CVE-2021-22918
ReleasePackageFixed in
libuv1 1.40.0-2

openSUSE 1 release · 3 packages

fixed 3
libuv-devel nodejs14 nodejs16
openSUSE fixes for CVE-2021-22918
ReleasePackageFixed inAdvisory
Tumbleweed libuv-devel +2 1.42.0-1.2 openSUSE-SU-2024:11007-1
Tumbleweed nodejs14 +3 14.17.5-1.2 openSUSE-SU-2024:11096-1
Tumbleweed nodejs16 +3 16.6.2-2.2 openSUSE-SU-2024:11097-1

rocky 3 releases · 5 packages

fixed 16
libuv nodejs-packaging nodejs npm nodejs-nodemon
rocky fixes for CVE-2021-22918
ReleasePackageFixed in
8 libuv 1:1.41.1-1.el8_4
8 (nodejs:12) nodejs-packaging 17-3.module+el8.3.0+101+f84c7154
8 (nodejs:12) nodejs +3 1:12.22.3-2.module+el8.4.0+638+5344c6f7
8 (nodejs:12) npm 1:6.14.13-1.12.22.3.2.module+el8.4.0+638+5344c6f7
8 (nodejs:12) nodejs-nodemon 2.0.3-1.module+el8.3.0+100+234774f7
8 (nodejs:12) nodejs-nodemon 2.0.3-1.module+el8.4.0+638+5344c6f7

10 more rows

ubuntu 3 releases · 1 package

fixed 3
libuv1
ubuntu fixes for CVE-2021-22918
ReleasePackageFixed in
20.04 libuv1 1.34.2-1ubuntu1.3
20.04-ESM libuv1 1.34.2-1ubuntu1.3
22.04 libuv1 1.40.0-2

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.