# CVE-2021-22918: 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: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 23.1%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-07-12T00:00:00.000Z
- Modified: 2026-10-16T09:45:31.664Z
- Also known as: BIT-NODE-2021-22918, BIT-NODE-MIN-2021-22918
- Weaknesses: CWE-125
- Assigned by: hackerone

## 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().

(As written by CVE List.)

## Affected

- 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.*; from 12.0 before 12.22.2; from 13.0 before 13.*; from 14.0 before 14.17.2; from 15.0 before 15.*; and 1 more
- 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
- siemens sinec_infrastructure_network_services: before 1.0.1.1
- 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
- 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

## Every score

- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://hackerone.com/reports/1209681> (exploit, advisory, 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

- CVE List: [CVE-2021-22918](https://www.cve.org/CVERecord?id=CVE-2021-22918), CVE Terms of Use, modified 2025-04-30
- NVD: [CVE-2021-22918](https://nvd.nist.gov/vuln/detail/CVE-2021-22918), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-NODE-2021-22918](https://osv.dev/vulnerability/BIT-NODE-2021-22918), Apache-2.0, modified 2026-10-16
- Bitnami Vulnerability Database: [BIT-NODE-MIN-2021-22918](https://osv.dev/vulnerability/BIT-NODE-MIN-2021-22918), Apache-2.0, modified 2026-10-16

---

Page: https://cve.day/CVE-2021-22918 · Whole record: https://cve.day/CVE-2021-22918.json · Rebuilt by cve.day 2026-11-25T22:58:02.505Z
