CVE-2021-22918 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...
MediumCVSS 5.3
EPSS 23.1%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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().
Upgrade path
11 packages: 10 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| nodejs node | >= 4.0; >= 5.0; >= 6.0; >= 7.0 +9 more | 12.22.2, 14.17.2, 16.4.1 | Partially fixed |
| alpine/nodejs(Alpine v3.11) | < 12.22.2-r0 | 12.22.2-r0 | Fixed |
| alpine/nodejs(Alpine v3.12) | < 12.22.2-r0 | 12.22.2-r0 | Fixed |
| alpine/nodejs(Alpine v3.13) | < 14.17.3-r0 | 14.17.3-r0 | Fixed |
| alpine/nodejs(Alpine v3.14) | < 14.17.3-r0 | 14.17.3-r0 | Fixed |
| debian/libuv1(Debian 12) | < 1.40.0-2 | 1.40.0-2 | Fixed |
| debian/libuv1(Debian 13) | < 1.40.0-2 | 1.40.0-2 | Fixed |
| debian/libuv1(Debian 14) | < 1.40.0-2 | 1.40.0-2 | Fixed |
| nodejs node.js | >= 12.0.0, < 12.22.2; >= 14.0.0, < 14.17.2; >= 16.0.0, < 16.4.1 | 12.22.2, 14.17.2, 16.4.1 | Fixed |
| Siemens sinec infrastructure network services | < 1.0.1.1 | 1.0.1.1 | Fixed |
| ubuntu/libuv1(Ubuntu 20.04) | < 1.34.2-1ubuntu1.3; = 1.30.1-1; = 1.33.1-2; = 1.33.1-2ubuntu2 +3 more | 1.34.2-1ubuntu1.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libuv1(Debian:12) | < 1.40.0-2 | 1.40.0-2 |
| debian/libuv1(Debian:13) | < 1.40.0-2 | 1.40.0-2 |
| debian/libuv1(Debian:14) | < 1.40.0-2 | 1.40.0-2 |
| nodejs node.js | >= 12.0.0, < 12.22.2 | 12.22.2 |
| nodejs node.js | >= 14.0.0, < 14.17.2 | 14.17.2 |
| nodejs node.js | >= 16.0.0, < 16.4.1 | 16.4.1 |
| Siemens sinec infrastructure network services | < 1.0.1.1 | 1.0.1.1 |
| alpine/nodejs(Alpine:v3.11) | < 12.22.2-r0 | 12.22.2-r0 |
| alpine/nodejs(Alpine:v3.12) | < 12.22.2-r0 | 12.22.2-r0 |
| alpine/nodejs(Alpine:v3.13) | < 14.17.3-r0 | 14.17.3-r0 |
| alpine/nodejs(Alpine:v3.14) | < 14.17.3-r0 | 14.17.3-r0 |
| nodejs node | >= 4.0 | No fix listed |
| nodejs node | >= 5.0 | No fix listed |
| nodejs node | >= 6.0 | No fix listed |
| nodejs node | >= 7.0 | No fix listed |
| nodejs node | >= 8.0 | No fix listed |
| nodejs node | >= 9.0 | No fix listed |
| nodejs node | >= 10.0 | No fix listed |
| nodejs node | >= 11.0 | No fix listed |
| nodejs node | >= 12.0, < 12.22.2 | 12.22.2 |
| nodejs node | >= 13.0 | No fix listed |
| nodejs node | >= 14.0, < 14.17.2 | 14.17.2 |
| nodejs node | >= 15.0 | No fix listed |
| nodejs node | >= 16.0, < 16.4.1 | 16.4.1 |
| ubuntu/libuv1(Ubuntu:20.04) | < 1.34.2-1ubuntu1.3 | 1.34.2-1ubuntu1.3 |
Show 6 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/libuv1(Ubuntu:20.04) | = 1.30.1-1 | No fix listed |
| ubuntu/libuv1(Ubuntu:20.04) | = 1.33.1-2 | No fix listed |
| ubuntu/libuv1(Ubuntu:20.04) | = 1.33.1-2ubuntu2 | No fix listed |
| ubuntu/libuv1(Ubuntu:20.04) | = 1.33.1-3ubuntu1 | No fix listed |
| ubuntu/libuv1(Ubuntu:20.04) | = 1.34.2-1ubuntu1 | No fix listed |
| ubuntu/libuv1(Ubuntu:20.04) | = 1.34.2-1ubuntu1.1 | No fix listed |
References
- Debian Security Tracker CVE-2021-22918 vendor-advisory
- cert-portal.siemens.com patch third-party-advisory
- hackerone.com exploit third-party-advisory
- nodejs.org issue-tracking patch vendor-advisory
- GLSA-202401-23 vendor-advisory
- security.netapp.com third-party-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking