Vulnerability · Published Jul 12, 2021 · Assigned by hackerone
CVE-2021-22918
Medium 5.3
In plain English
A medium-severity out-of-bounds read in Node from NodeJS. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 23.1% (higher than 98% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | libuv | 1:1.41.1-1.el8_4 | ALSA-2021:3075 |
| AlmaLinux:8 | libuv-devel | 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 |
| AlmaLinux:8 | nodejs-nodemon | 2.0.3-1.module_el8.4.0+2521+c668cc9f | ALSA-2021:3073 |
| AlmaLinux:8 | nodejs-packaging | 17-3.module_el8.4.0+2224+b07ac28e | ALSA-2021:3073 |
| AlmaLinux:8 | nodejs-packaging | 23-3.module_el8.5.0+254+b4526b16 | ALSA-2021:3074 |
| AlmaLinux:8 | nodejs-packaging | 23-3.module_el8.4.0+2522+3bd42762 | ALSA-2021:3074 |
| AlmaLinux:8 | nodejs-packaging | 17-3.module_el8.4.0+2521+c668cc9f | ALSA-2021:3073 |
| AlmaLinux:8 | nodejs-packaging | 17-3.module_el8.3.0+2023+d2377ea3 | ALSA-2021:3073 |
| Debian:12 | libuv1 | 1.40.0-2 | DEBIAN-CVE-2021-22918 |
| Debian:13 | libuv1 | 1.40.0-2 | DEBIAN-CVE-2021-22918 |
| Debian:14 | libuv1 | 1.40.0-2 | DEBIAN-CVE-2021-22918 |
| Rocky Linux:8 | libuv | 1:1.41.1-1.el8_4 | RLSA-2021:3075 |
| Rocky Linux:8 | nodejs | 1:14.17.3-2.module+el8.4.0+639+18660d0d | RLSA-2021:3074 |
| Rocky Linux:8 | nodejs | 1:12.22.3-2.module+el8.4.0+638+5344c6f7 | RLSA-2021:3073 |
| Rocky Linux:8 | nodejs-nodemon | 0:2.0.3-1.module+el8.3.0+100+234774f7 | RLSA-2021:3074 |
| Rocky Linux:8 | nodejs-nodemon | 0:2.0.3-1.module+el8.3.0+100+234774f7 | RLSA-2021:3073 |
| Rocky Linux:8 | nodejs-nodemon | 0:2.0.3-1.module+el8.4.0+638+5344c6f7 | RLSA-2021:3074 |
| Rocky Linux:8 | nodejs-nodemon | 0:2.0.3-1.module+el8.4.0+638+5344c6f7 | RLSA-2021:3073 |
| Rocky Linux:8 | nodejs-nodemon | 0:2.0.3-1.module+el8.6.0+982+9fdca2d4 | RLSA-2021:3074 |
| Rocky Linux:8 | nodejs-nodemon | 0:2.0.3-1.module+el8.6.0+982+9fdca2d4 | RLSA-2021:3073 |
| Rocky Linux:8 | nodejs-packaging | 0:23-3.module+el8.5.0+733+de4fee6c | RLSA-2021:3074 |
| Rocky Linux:8 | nodejs-packaging | 0:17-3.module+el8.3.0+101+f84c7154 | RLSA-2021:3073 |
| Rocky Linux:8 | nodejs-packaging | 0:23-3.module+el8.7.0+1071+4bdda2a8 | RLSA-2021:3074 |
| Rocky Linux:8 | nodejs-packaging | 0:23-3.module+el8.3.0+100+234774f7 | RLSA-2021:3074 |
Affected products (as reported)
Weakness: CWE-125