CVE Vulnerabilities

CVE-2020-8265

Use After Free

Published: Jan 06, 2021 | Modified: Nov 21, 2024
CVSS 3.x
8.1
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
6.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
8.1 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
Node.jsNodejs10.0.0 (including)10.23.1 (excluding)
Node.jsNodejs12.0.0 (including)12.20.1 (excluding)
Node.jsNodejs14.0.0 (including)14.15.4 (excluding)
Node.jsNodejs15.0.0 (including)15.5.1 (excluding)
Red Hat Enterprise Linux 8RedHatnodejs:10-8030020210118191659.229f0a1c*
Red Hat Enterprise Linux 8RedHatnodejs:12-8030020210129141730.229f0a1c*
Red Hat Enterprise Linux 8RedHatnodejs:14-8030020210126165503.229f0a1c*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-nodejs14-nodejs-0:14.15.4-2.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-nodejs12-nodejs-0:12.20.1-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-nodejs12-nodejs-nodemon-0:2.0.3-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-nodejs10-nodejs-0:10.23.1-2.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSRedHatrh-nodejs14-nodejs-0:14.15.4-2.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSRedHatrh-nodejs12-nodejs-0:12.20.1-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSRedHatrh-nodejs12-nodejs-nodemon-0:2.0.3-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSRedHatrh-nodejs10-nodejs-0:10.23.1-2.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSRedHatrh-nodejs14-nodejs-0:14.15.4-2.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSRedHatrh-nodejs12-nodejs-0:12.20.1-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSRedHatrh-nodejs12-nodejs-nodemon-0:2.0.3-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSRedHatrh-nodejs10-nodejs-0:10.23.1-2.el7*
NodejsUbuntubionic*
NodejsUbuntuesm-apps/bionic*
NodejsUbuntuesm-apps/focal*
NodejsUbuntuesm-apps/xenial*
NodejsUbuntufocal*
NodejsUbuntugroovy*
NodejsUbuntuhirsute*
NodejsUbuntuimpish*
NodejsUbuntukinetic*
NodejsUbuntutrusty*
NodejsUbuntuxenial*

Potential Mitigations

References