CVE-2021-22940
Node.js before 16.6.1, 14.17.5, and 12.22.5 is vulnerable to a use after free attack where an attacker might be able to exploit the memory corruption, to change process behavior.
02 Description
Node.js before 16.6.1, 14.17.5, and 12.22.5 is vulnerable to a use after free attack where an attacker might be able to exploit the memory corruption, to change process behavior.
03 Exploitation and scoring
- Exploitation
- Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
- SSVC decision
- Not assessed by CISA
- EPSS probability
- 13.86% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 96.1% of scored records. A rank, not a probability.
- NVD base score
- 7.5 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Important. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2021-08-16 00:00Z5 YR AGO
- Last updated
- 2025-04-30 22:24Z1 YR AGO
- Reserved
- 2021-01-06
- Assigning CNA
- hackerone
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- CWE-416Use After FreeVariant
- Data version
- 5.1
- Document digest
- b4cb2c7b58a043fdcaa98c68ac545c6b699c37a3288b572b05161988b622f1d1
05 Affected products
06 References
- hackerone.comhttps://hackerone.com/reports/1238162
- nodejs.orghttps://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/
- www.oracle.comhttps://www.oracle.com/security-alerts/cpuoct2021.html
- security.netapp.comhttps://security.netapp.com/advisory/ntap-20210923-0001/
- www.oracle.comhttps://www.oracle.com/security-alerts/cpujan2022.html
- cert-portal.siemens.comhttps://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- www.oracle.comhttps://www.oracle.com/security-alerts/cpujul2022.html
- lists.debian.org[debian-lts-announce] 20221005 [SECURITY] [DLA 3137-1] nodejs security updatehttps://lists.debian.org/debian-lts-announce/2022/10/msg00006.html
- security.gentoo.orgGLSA-202401-02https://security.gentoo.org/glsa/202401-02
07 Fixed in
AlmaLinux 8
- nodejs Fixed
A version is affected if any line below covers it.
- Affected before 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
- Affected before 1:12.22.5-1.module_el8.5.0+85+79a7b441
- nodejs-devel Fixed
A version is affected if any line below covers it.
- Affected before 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
- Affected before 1:12.22.5-1.module_el8.5.0+85+79a7b441
- nodejs-docs Fixed in 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
- nodejs-full-i18n Fixed
A version is affected if any line below covers it.
- Affected before 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
- Affected before 1:12.22.5-1.module_el8.5.0+85+79a7b441
- nodejs-nodemon Fixed in 2.0.3-1.module_el8.4.0+2521+c668cc9f
- nodejs-packaging Fixed
A version is affected if any line below covers it.
- Affected before 17-3.module_el8.3.0+2023+d2377ea3
- Affected before 17-3.module_el8.4.0+2224+b07ac28e
- Affected before 17-3.module_el8.4.0+2521+c668cc9f
- Affected before 23-3.module_el8.4.0+2522+3bd42762
- Affected before 23-3.module_el8.5.0+254+b4526b16
- npm Fixed
A version is affected if any line below covers it.
- Affected before 1:6.14.14-1.12.22.5.1.module_el8.4.0+2529+af52a4c7
- Affected before 1:6.14.14-1.12.22.5.1.module_el8.5.0+85+79a7b441
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Arch Linux
- nodejs Fixed in 16.6.2-1
Source: Arch Linux Security Tracker, the Arch Linux security team. Reformatted by exploit.cc.
CloudLinux 8
- nodejs Fixed
A version is affected if any line below covers it.
- Affected before 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
- Affected before 1:12.22.5-1.module_el8.5.0+85+79a7b441
- nodejs-devel Fixed
A version is affected if any line below covers it.
- Affected before 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
- Affected before 1:12.22.5-1.module_el8.5.0+85+79a7b441
- nodejs-docs Fixed in 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
- nodejs-full-i18n Fixed
A version is affected if any line below covers it.
- Affected before 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
- Affected before 1:12.22.5-1.module_el8.5.0+85+79a7b441
- nodejs-nodemon Fixed in 2.0.3-1.module_el8.4.0+2521+c668cc9f
- nodejs-packaging Fixed
A version is affected if any line below covers it.
- Affected before 17-3.module_el8.3.0+2023+d2377ea3
- Affected before 17-3.module_el8.4.0+2224+b07ac28e
- Affected before 17-3.module_el8.4.0+2521+c668cc9f
- Affected before 23-3.module_el8.4.0+2522+3bd42762
- Affected before 23-3.module_el8.5.0+254+b4526b16
- npm Fixed
A version is affected if any line below covers it.
- Affected before 1:6.14.14-1.12.22.5.1.module_el8.4.0+2529+af52a4c7
- Affected before 1:6.14.14-1.12.22.5.1.module_el8.5.0+85+79a7b441
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 12
- nodejs Fixed in 12.22.5~dfsg-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- nodejs Fixed in 12.22.5~dfsg-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- nodejs Fixed in 12.22.5~dfsg-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.