5.3medium
Node.js before 16.4.1, 14.17.2, 12.22.2 is vulnerable to an out-of-bounds read when uvidnatoascii() is used to convert strings to ASCII.
- Severity
- 5.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 23.1% (higher than 97% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- BIT-NODE-2021-22918BIT-NODE-MIN-2021-22918
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
| Product or package | Versions | Reported by |
|---|---|---|
| NodeJS Node | from 4.0 before 4.*, from 5.0 before 5.*, from 6.0 before 6.*, from 7.0 before 7.*, from 8.0 before 8.*, from 9.0 before 9.*, from 10.0 before 10.*, from 11.0 before 11.* and 5 more | CVE List |
| nodejs node.js | from 12.0.0 before 12.22.2, from 14.0.0 before 14.17.2, from 16.0.0 before 16.4.1 | NVD |
| siemens sinec_infrastructure_network_services | before 1.0.1.1 | NVD |
| node (Bitnami) | from 12.0.0 before 12.22.2, from 14.0.0 before 14.17.2, from 16.0.0 before 16.4.1 | Bitnami Vulnerability Database |
| node-min (Bitnami) | from 12.0.0 before 12.22.2, from 14.0.0 before 14.17.2, from 16.0.0 before 16.4.1 | Bitnami Vulnerability Database |
All scores
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
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().
NVD (es)
Node.js versiones anteriores a 16.4.1, 14.17.2, 12.22.2, es vulnerable a una lectura fuera de límites cuando la función uv__idna_toascii() es usada para convertir cadenas a ASCII. El puntero p es leído e incrementado sin comprobar si está más allá de pe, siendo este último un puntero al final del buffer. Esto puede conllevar a una revelación de información o el bloqueo de la misma. Esta función puede ser desencadenada por medio de la función uv_getaddrinfo()
References
| https://hackerone.com/reports/1209681 | advisory, exploit, third-party-advisory | |
| https://nodejs.org/en/blog/vulnerability/july-2021-security-releases/ | advisory, patch, vendor-advisory | |
| https://security.netapp.com/advisory/ntap-20210805-0003/ | advisory, third-party-advisory | |
| https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf | patch, third-party-advisory | |
| https://security.gentoo.org/glsa/202401-23 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-22918 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-22918 changed 2025-04-30 | CVE Terms of Use |
| NVD | CVE-2021-22918 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-NODE-2021-22918 changed 2026-10-16 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-NODE-MIN-2021-22918 changed 2026-10-16 | Apache-2.0 |