Use after free in NodeJS Node
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-416 and the CVSS impact.
Summary
Node.js versions before 10.23.1, 12.20.1, 14.15.4, 15.5.1 are vulnerable to a use-after-free bug in its TLS implementation. When writing to a TLS enabled socket, node::StreamBase::Write calls node::TLSWrap::DoWrite with a freshly allocated WriteWrap object as first argument. If the DoWrite method does not return an error, this object is passed back to the caller as part of a StreamWriteResult structure. This may be exploited to corrupt memory leading to a Denial of Service or potentially other exploits.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| NodeJS | Node | 4.0 and later; 5.0 and later; 6.0 and later; 7.0 and later; 8.0 and later; 9.0 and later; 10.0 to before 10.23.1; 11.0 and later; 12.0 to before 12.20.1; 13.0 and later; 14.0 to before 14.15.4; 15.0 to before 15.5.1 | 10.23.1, 12.20.1, 14.15.4, 15.5.1 | Patch available | CNA |
- Node VendorNodeJS Affected 4.0 and later; 5.0 and later; 6.0 and later; 7.0 and later; 8.0 and later; 9.0 and later; 10.0 to before 10.23.1; 11.0 and later; 12.0 to before 12.20.1; 13.0 and later; 14.0 to before 14.15.4; 15.0 to before 15.5.1 Fixed in 10.23.1, 12.20.1, 14.15.4, 15.5.1 Patch available CNA
CPE configurations NVD · 8
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:* | 10.0.0 to before 10.23.1; 12.0.0 to before 12.20.1; 14.0.0 to before 14.15.4 | Vulnerable | NodeJS |
| cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* | 15.0.0 to before 15.5.1 | Vulnerable | NodeJS |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
| cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* | 32 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* | 33 | Vulnerable | Fedoraproject |
| cpe:2.3:a:oracle:graalvm:19.3.4:*:*:*:enterprise:*:*:* | 19.3.4 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:graalvm:20.3.0:*:*:*:enterprise:*:*:* | 20.3.0 | Vulnerable | Oracle |
| cpe:2.3:a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:* | before 1.0.1.1 | Vulnerable | Siemens |
- cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:* Versions 10.0.0 to before 10.23.1; 12.0.0 to before 12.20.1; 14.0.0 to before 14.15.4 Vulnerable ·NodeJS
- cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* Versions 15.0.0 to before 15.5.1 Vulnerable ·NodeJS
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
- cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* Versions 32 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* Versions 33 Vulnerable ·Fedoraproject
- cpe:2.3:a:oracle:graalvm:19.3.4:*:*:*:enterprise:*:*:* Versions 19.3.4 Vulnerable ·Oracle
- cpe:2.3:a:oracle:graalvm:20.3.0:*:*:*:enterprise:*:*:* Versions 20.3.0 Vulnerable ·Oracle
- cpe:2.3:a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:* Versions before 1.0.1.1 Vulnerable ·Siemens
Remediation
- Fix · CNA Node (NodeJS) Fixed in 10.23.1, 12.20.1, 14.15.4, 15.5.1
Red Hat 6 advisories
- RHSA-2021:0551 Released 2021-02-16 · Red Hat rating Moderatenodejs:14 security and bug fix update
- Red Hat Enterprise Linux AppStream (v. 8) nodejs-1:14.15.4-2.module+el8.3.0+9635+ffdf8381.aarch64::nodejs:14, nodejs-1:14.15.4-2.module+el8.3.0+9635+ffdf8381.ppc64le::nodejs:14, nodejs-1:14.15.4-2.module+el8.3.0+9635+ffdf8381.s390x::nodejs:14 +19
- RHSA-2021:0549 Released 2021-02-16 · Red Hat rating Moderatenodejs:12 security update
- Red Hat Enterprise Linux AppStream (v. 8) nodejs-1:12.20.1-1.module+el8.3.0+9503+19cb079c.aarch64::nodejs:12, nodejs-1:12.20.1-1.module+el8.3.0+9503+19cb079c.ppc64le::nodejs:12, nodejs-1:12.20.1-1.module+el8.3.0+9503+19cb079c.s390x::nodejs:12 +19
- RHSA-2021:0548 Released 2021-02-16 · Red Hat rating Moderatenodejs:10 security update
- Red Hat Enterprise Linux AppStream (v. 8) nodejs-1:10.23.1-1.module+el8.3.0+9502+012d8a97.aarch64::nodejs:10, nodejs-1:10.23.1-1.module+el8.3.0+9502+012d8a97.ppc64le::nodejs:10, nodejs-1:10.23.1-1.module+el8.3.0+9502+012d8a97.s390x::nodejs:10 +19
Show 3 more Red Hat advisories
- RHSA-2021:0521 Released 2021-02-15 · Red Hat rating Moderaterh-nodejs10-nodejs security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-nodejs10-nodejs-10.23.1-2.el7, rh-nodejs10-nodejs-devel-10.23.1-2.el7, rh-nodejs10-nodejs-docs-10.23.1-2.el7 +1
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-nodejs10-nodejs-10.23.1-2.el7, rh-nodejs10-nodejs-devel-10.23.1-2.el7, rh-nodejs10-nodejs-docs-10.23.1-2.el7 +1
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-nodejs10-nodejs-10.23.1-2.el7, rh-nodejs10-nodejs-devel-10.23.1-2.el7, rh-nodejs10-nodejs-docs-10.23.1-2.el7 +1
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-nodejs10-nodejs-10.23.1-2.el7, rh-nodejs10-nodejs-devel-10.23.1-2.el7, rh-nodejs10-nodejs-docs-10.23.1-2.el7 +1
- RHSA-2021:0485 Released 2021-02-11 · Red Hat rating Moderaterh-nodejs12-nodejs security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-nodejs12-nodejs-12.20.1-1.el7, rh-nodejs12-nodejs-devel-12.20.1-1.el7, rh-nodejs12-nodejs-docs-12.20.1-1.el7 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-nodejs12-nodejs-12.20.1-1.el7, rh-nodejs12-nodejs-devel-12.20.1-1.el7, rh-nodejs12-nodejs-docs-12.20.1-1.el7 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-nodejs12-nodejs-12.20.1-1.el7, rh-nodejs12-nodejs-devel-12.20.1-1.el7, rh-nodejs12-nodejs-docs-12.20.1-1.el7 +2
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-nodejs12-nodejs-12.20.1-1.el7, rh-nodejs12-nodejs-devel-12.20.1-1.el7, rh-nodejs12-nodejs-docs-12.20.1-1.el7 +2
- RHSA-2021:0421 Released 2021-02-04 · Red Hat rating Moderaterh-nodejs14-nodejs security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-nodejs14-nodejs-14.15.4-2.el7, rh-nodejs14-nodejs-devel-14.15.4-2.el7, rh-nodejs14-nodejs-docs-14.15.4-2.el7 +1
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-nodejs14-nodejs-14.15.4-2.el7, rh-nodejs14-nodejs-devel-14.15.4-2.el7, rh-nodejs14-nodejs-docs-14.15.4-2.el7 +1
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-nodejs14-nodejs-14.15.4-2.el7, rh-nodejs14-nodejs-devel-14.15.4-2.el7, rh-nodejs14-nodejs-docs-14.15.4-2.el7 +1
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-nodejs14-nodejs-14.15.4-2.el7, rh-nodejs14-nodejs-devel-14.15.4-2.el7, rh-nodejs14-nodejs-docs-14.15.4-2.el7 +1
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
NodeJS Node — FEDORA-2021-fb1a136393
2 records Highest priority Priority MEDIUM 2 MEDIUM
Other records, highest priority first
- TI-2020-06704 Node.js versions before 10.23.1, 12.20.1, 14.15.4, 15.5.1 allow two copies of a header…Priority MEDIUM 45
- Advisory ·
NodeJS Node — DSA-4826
2 records Highest priority Priority MEDIUM 2 MEDIUM
Other records, highest priority first
- TI-2020-06704 Node.js versions before 10.23.1, 12.20.1, 14.15.4, 15.5.1 allow two copies of a header…Priority MEDIUM 45
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2021:0548, RHSA-2021:0549, RHSA-2021:0551 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2021:0421, RHSA-2021:0485, RHSA-2021:0521 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) | Fixed | RHSA-2021:0421, RHSA-2021:0485, RHSA-2021:0521 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) | Fixed | RHSA-2021:0421, RHSA-2021:0485, RHSA-2021:0521 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2021:0421, RHSA-2021:0485, RHSA-2021:0521 |
Not affected: 2 products
- Red Hat Enterprise Linux 9
- Red Hat Quay 3
Timeline
- 2026-10-02 Threatist record created from CVE-2020-8265
- 2026-10-03 Alias added: GHSA-879w-9vpf-9pw9
References
Exploit 1
Patch 2
More NodeJS Node.js vulnerabilities
- TI-2026-79288 Out-of-bounds write in Google Brotli decoder KEVCVSS 4.0CRITICAL 9.2
- TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
- TI-2016-01993 The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other… CVSS 3.1HIGH 7.5
- TI-2024-03325 Command injection vulnerability in programing languages on Microsoft Windows operating system. CVSS 3.1CRITICAL 9.8
- TI-2022-03472 X.509 Email Address Variable Length Buffer Overflow CVSS 3.1HIGH 7.5
- TI-2022-03315 X.509 Email Address 4-byte Buffer Overflow CVSS 3.1HIGH 7.5
Sources
- CVE-2020-8265 · CVE Program
- CVE-2020-8265 · NVD
- FIRST EPSS
- GHSA-879w-9vpf-9pw9 · GitHub Advisory Database · CC BY 4.0
- CVE-2020-8265 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences