CVE-2020-8265 Use after free in Node

High 8.1 Published Updated

A use-after-free bug in Node.js TLS implementation allows attackers to corrupt memory, causing denial of service or potential code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-8265?

CVE-2020-8265 is a high-severity use after free vulnerability in Debian Debian Linux, published on 6 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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: CWE-416

Which versions are affected by CVE-2020-8265?

2 open source packages ship an affected version, including node and node-min. It affects 5 products.

PackageAffectedFixed in
node BitnamiFrom 10.0.010.23.1, 12.20.1, 14.15.4, 15.5.1
node-min BitnamiFrom 10.0.010.23.1, 12.20.1, 14.15.4, 15.5.1

Products include Debian Debian Linux, Fedoraproject Fedora, Nodejs Node.js, Oracle Graalvm, Siemens Sinec Infrastructure Network Services.

How do I fix CVE-2020-8265?

Upgrade node to a fixed version for your release line: 10.23.1, 12.20.1, 14.15.4 or 15.5.1.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2020-8265 being exploited?

There is no known exploitation of CVE-2020-8265 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2020-8265, BIT-node-2020-8265, BIT-node-min-2020-8265, CLEANSTART-2026-ES54062, CLEANSTART-2026-KN57081, DEBIAN-CVE-2020-8265 and 2 more.

Is CVE-2020-8265 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free