CVE-2021-22918
libuv: out-of-bounds read in uv__idna_toascii() can lead to information disclosures or crashes
Overview
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
Operating systems · 65 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | pytorch | 0:2.2.2-4.azl3 |
Oracle Linux 1 release · 5 packages
| Release | Package | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nodejs +1 | 14.16.0-2.ph4 |
Red Hat 5 releases · 11 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed 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
| Release | Package | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| libuv1 | 1.40.0-2 |
openSUSE 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed 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
| Release | Package | Fixed 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
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-22918
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1979338
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22918
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2021-3075.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2021:3075
- hackerone.com https://hackerone.com/reports/1209681
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-22918.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2021-3075.html
- nodejs.org https://nodejs.org/en/blog/vulnerability/july-2021-security-releases/
Show all 15 references
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-22918
- security.gentoo.org https://security.gentoo.org/glsa/202401-23
- security.netapp.com https://security.netapp.com/advisory/ntap-20210805-0003/
- ubuntu.com https://ubuntu.com/security/notices/USN-5007-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-22918
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.