CVE-2021-22918

MEDIUMCVSS 5.3/10EPSS 23.13%

Last modified

CVE-2021-22918 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 23.13% chance of exploitation in the next 30 days.

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

Metrics

CVSS 3.1
5.3/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

EPSS Probability
23.13%

97.5th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
NodejsNode.Js>= 12.0.0, < 12.22.2
NodejsNode.Js>= 14.0.0, < 14.17.2
NodejsNode.Js>= 16.0.0, < 16.4.1
SiemensSinec Infrastructure Network Services< 1.0.1.1

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-22918?
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().
How severe is CVE-2021-22918?
CVE-2021-22918 has a CVSS score of 5.3/10 (MEDIUM severity). The EPSS model estimates a 23.13% probability of exploitation in the next 30 days.
How do I fix CVE-2021-22918?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-22918?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST