CVE Program
CNA-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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Node.js | node | From 4.0 before 5 From 5.0 before 6 From 6.0 before 7 From 7.0 before 8 From 8.0 before 9 From 9.0 before 10 From 10.0 before 11 From 11.0 before 12 From 12.0 before 12.22.2 (fixed in 12.22.2) From 13.0 before 14 From 14.0 before 14.17.2 (fixed in 14.17.2) From 15.0 before 16 From 16.0 before 16.4.1 (fixed in 16.4.1) |
References
- https://www.cve.org/CVERecord?id=CVE-2021-22918
- https://hackerone.com/reports/1209681
- https://nodejs.org/en/blog/vulnerability/july-2021-security-releases/
- https://security.netapp.com/advisory/ntap-20210805-0003/
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://security.gentoo.org/glsa/202401-23