ADVISORIES

Alpine Security Database

ALPINE-CVE-2021-22918

Details

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

EcosystemPackageAffected versions
Alpine:v3.11nodejs
All versions before 12.22.2-r0 (fixed in 12.22.2-r0)
Alpine:v3.12nodejs
All versions before 12.22.2-r0 (fixed in 12.22.2-r0)
Alpine:v3.13nodejs
All versions before 14.17.3-r0 (fixed in 14.17.3-r0)
Alpine:v3.14nodejs
All versions before 14.17.3-r0 (fixed in 14.17.3-r0)

References