Vulnerability · Published Sep 18, 2020 · Assigned by hackerone

CVE-2020-8252

High 7.8

In plain English

A high-severity buffer overflow in Node from NodeJS. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.8High
Exploit odds (30 days)0.7%top 46.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8nodejs-nodemon1.18.3-1.module_el8.3.0+2023+d2377ea3ALSA-2020:4272
AlmaLinux:8nodejs-nodemon1.18.3-1.module_el8.3.0+2047+b07ac28eALSA-2020:4272
AlmaLinux:8nodejs-nodemon1.18.3-1.module_el8.3.0+2023+d2377ea3ALSA-2021:0548
AlmaLinux:8nodejs-nodemon1.18.3-1.module_el8.3.0+2047+b07ac28eALSA-2021:0548
AlmaLinux:8nodejs-packaging17-3.module_el8.3.0+2023+d2377ea3ALSA-2020:4272
AlmaLinux:8nodejs-packaging17-3.module_el8.4.0+2521+c668cc9fALSA-2021:0548
AlmaLinux:8nodejs-packaging17-3.module_el8.3.0+2023+d2377ea3ALSA-2021:0548
AlmaLinux:8nodejs-packaging17-3.module_el8.4.0+2224+b07ac28eALSA-2021:0548
AlmaLinux:8nodejs-packaging17-3.module_el8.4.0+2224+b07ac28eALSA-2020:4272
AlmaLinux:8nodejs-packaging17-3.module_el8.4.0+2521+c668cc9fALSA-2020:4272
Alpine:v3.20libuv1.39.0-r0ALPINE-CVE-2020-8252
Alpine:v3.21libuv1.39.0-r0ALPINE-CVE-2020-8252
Alpine:v3.22libuv1.39.0-r0ALPINE-CVE-2020-8252
Alpine:v3.23libuv1.39.0-r0ALPINE-CVE-2020-8252
Alpine:v3.24libuv1.39.0-r0ALPINE-CVE-2020-8252
Alpine:v3.20nodejs12.18.4-r0ALPINE-CVE-2020-8252
Alpine:v3.21nodejs12.18.4-r0ALPINE-CVE-2020-8252
Alpine:v3.22nodejs12.18.4-r0ALPINE-CVE-2020-8252
Alpine:v3.23nodejs12.18.4-r0ALPINE-CVE-2020-8252
Alpine:v3.24nodejs12.18.4-r0ALPINE-CVE-2020-8252
Debian:12libuv11.39.0-1DEBIAN-CVE-2020-8252
Debian:13libuv11.39.0-1DEBIAN-CVE-2020-8252
Debian:14libuv11.39.0-1DEBIAN-CVE-2020-8252
Rocky Linux:8nodejs-nodemon0:1.18.3-1.module+el8.3.0+101+f84c7154RLSA-2021:0548
Rocky Linux:8nodejs-nodemon0:1.18.3-1.module+el8.3.0+101+f84c7154RLSA-2020:4272
Rocky Linux:8nodejs-packaging0:17-3.module+el8.3.0+101+f84c7154RLSA-2021:0548
Rocky Linux:8nodejs-packaging0:17-3.module+el8.3.0+101+f84c7154RLSA-2020:4272

Affected products (as reported)

VendorProductVersions
NodeJS Node 4.0 – before 4.*5.0 – before 5.*6.0 – before 6.*7.0 – before 7.*8.0 – before 8.*9.0 – before 9.*10.0 – before 10.22.111.0 – before 11.*

Weakness: CWE-120

References