CVE-2021-22918
JSON

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 packageVersionsReported by
NodeJS Nodefrom 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 moreCVE List
nodejs node.jsfrom 12.0.0 before 12.22.2, from 14.0.0 before 14.17.2, from 16.0.0 before 16.4.1NVD
siemens sinec_infrastructure_network_servicesbefore 1.0.1.1NVD
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.1Bitnami 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.1Bitnami Vulnerability Database

All scores

NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N
Bitnami Vulnerability Databasemedium 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

Sources

SourceRecordLicence
CVE ListCVE-2021-22918 changed 2025-04-30CVE Terms of Use
NVDCVE-2021-22918 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-NODE-2021-22918 changed 2026-10-16Apache-2.0
Bitnami Vulnerability DatabaseBIT-NODE-MIN-2021-22918 changed 2026-10-16Apache-2.0