CVE-2020-8265 Use after free in Node
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.
| Package | Affected | Fixed in |
|---|---|---|
node Bitnami | From 10.0.0 | 10.23.1, 12.20.1, 14.15.4, 15.5.1 |
node-min Bitnami | From 10.0.0 | 10.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.
Other vulnerabilities in Debian Debian Linux
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.