CVE-2020-8252 Memory corruption in Node

High 7.8 Published Updated

A buffer overflow in libuv's realpath implementation allows attackers to execute arbitrary code or cause denial of service via long paths.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2020-8252?

CVE-2020-8252 is a high-severity memory corruption vulnerability in Fedoraproject Fedora, published on 18 Sep 2020. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

The implementation of realpath in libuv < 10.22.1, < 12.18.4, and < 14.9.0 used within Node.js incorrectly determined the buffer size which can result in a buffer overflow if the resolved path is longer than 256 bytes.

Weakness: CWE-120

Which versions are affected by CVE-2020-8252?

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

PackageAffectedFixed in
node BitnamiFrom 10.0.010.22.1, 12.18.4, 14.9.0
node-min BitnamiFrom 10.0.010.22.1, 12.18.4, 14.9.0

Products include Fedoraproject Fedora, Nodejs Node.js, Opensuse Leap.

How do I fix CVE-2020-8252?

Upgrade node to a fixed version for your release line: 10.22.1, 12.18.4 or 14.9.0.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2020-8252 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2020-8252, BIT-node-2020-8252, BIT-node-min-2020-8252, CLEANSTART-2026-MB55413, CLEANSTART-2026-OH78893, DEBIAN-CVE-2020-8252 and 4 more.

Is CVE-2020-8252 in your software?

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

Check your SBOMs for free