cve.bz

CVE-2020-8252 Classic Buffer Overflow

7.8 highEPSS 0.7%

High (7.8). EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 55th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-8252 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-8252?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-8252?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-8252 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
NodeJS Nodefrom 4.0 before 4.*
NodeJS Nodefrom 5.0 before 5.*
NodeJS Nodefrom 6.0 before 6.*
NodeJS Nodefrom 7.0 before 7.*
NodeJS Nodefrom 8.0 before 8.*
NodeJS Nodefrom 9.0 before 9.*
NodeJS Nodefrom 10.0 before 10.22.1
NodeJS Nodefrom 11.0 before 11.*
NodeJS Nodefrom 12.0 before 12.18.4
NodeJS Nodefrom 13.0 before 13.*
NodeJS Nodefrom 14.0 before 14.9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libuv11.39.0-1DEBIAN-CVE-2020-8252
Ubuntu20.04:LTSlibuv11.34.2-1ubuntu1.1UBUNTU-CVE-2020-8252 USN-4548-1
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:10.23.1-1.module+el8.3.0+9502+012d8a97RHSA-2021:0548
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:12.18.4-2.module+el8.2.0+8361+192e434eRHSA-2020:4272
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:1.18.3-1.module+el8+2632+6c5111edRHSA-2021:0548
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:1.18.3-1.module+el8.1.0+3369+37ae6a45RHSA-2020:4272
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:17-3.module+el8+2873+aa7dfd9aRHSA-2021:0548
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:17-3.module+el8.1.0+3369+37ae6a45RHSA-2020:4272
Red Hatenterprise_linux:8::appstreamnpm1:6.14.10-1.10.23.1.1.module+el8.3.0+9502+012d8a97RHSA-2021:0548
Red Hatenterprise_linux:8::appstreamnpm1:6.14.6-1.12.18.4.2.module+el8.2.0+8361+192e434eRHSA-2020:4272
Red Hatrhel_eus:8.1::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:12.18.4-2.module+el8.1.0+8360+14141500RHSA-2020:4903
Red Hatrhel_eus:8.1::appstreamnodejs-nodemon0:1.18.3-1.module+el8.1.0+3369+37ae6a45RHSA-2020:4903
Red Hatrhel_eus:8.1::appstreamnodejs-packaging0:17-3.module+el8.1.0+3369+37ae6a45RHSA-2020:4903
Red Hatrhel_eus:8.1::appstreamnpm1:6.14.6-1.12.18.4.2.module+el8.1.0+8360+14141500RHSA-2020:4903
4 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Module for Web and Scripting 15 SP1 and 3 morenodejs1010.22.1-1.27.1SUSE-SU-2020:2829-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1010.22.1-1.30.1SUSE-SU-2020:2823-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1212.18.4-1.20.1SUSE-SU-2020:2812-1
SUSELinux Enterprise Module for Web and Scripting 15 SP2nodejs1212.18.4-4.6.1SUSE-SU-2020:2813-1
openSUSELeap 15.2nodejs1010.22.1-lp152.2.6.1openSUSE-SU-2020:1660-1
openSUSELeap 15.2nodejs1212.18.4-lp152.3.6.1openSUSE-SU-2020:1616-1
AlmaLinux8nodejs-nodemon1.18.3-1.module_el8.3.0+2023+d2377ea3ALSA-2020:4272 ALSA-2021:0548
AlmaLinux8nodejs-nodemon1.18.3-1.module_el8.3.0+2047+b07ac28eALSA-2020:4272 ALSA-2021:0548
AlmaLinux8nodejs-packaging17-3.module_el8.3.0+2023+d2377ea3ALSA-2020:4272 ALSA-2021:0548
AlmaLinux8nodejs-packaging17-3.module_el8.4.0+2224+b07ac28eALSA-2020:4272 ALSA-2021:0548
AlmaLinux8nodejs-packaging17-3.module_el8.4.0+2521+c668cc9fALSA-2020:4272 ALSA-2021:0548
Rocky Linux8nodejs-nodemon0:1.18.3-1.module+el8.3.0+101+f84c7154RLSA-2020:4272 RLSA-2021:0548
Rocky Linux8nodejs-packaging0:17-3.module+el8.3.0+101+f84c7154RLSA-2020:4272 RLSA-2021:0548
Alpinev3.11nodejs12.20.1-r0ALPINE-CVE-2020-8252
Alpinev3.12libuv1.38.1-r0ALPINE-CVE-2020-8252
Alpinev3.12, v3.13, v3.14 and 10 morenodejs12.18.4-r0ALPINE-CVE-2020-8252
Alpinev3.13, v3.14, v3.15 and 9 morelibuv1.39.0-r0ALPINE-CVE-2020-8252

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

As shipped in Red Hat Software Collections (nodejs-10 & nodejs-12) as well as Red Hat Enterprise Linux 8 (nodejs-10 and nodejs-12), no incorrect use of the `UV__PATH_MAX` macro were found. Although the releases of libuv contained in these versions of nodejs are considered "Affected", it is considered not feasible to trigger the flaw.

NodeJS is included in Red Hat Quay as a dependency of Yarn which is only used while building Red Hat Quay, and not during runtime.

Red Hat Enterprise Linux 8 ships libuv-1.23.1, which is not vulnerable to this flaw.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:12-8020020201007080935.4cda2c84Fixed 2020-10-19RHSA-2020:4272
Red Hat Enterprise Linux 8nodejs:10-8030020210118191659.229f0a1cFixed 2021-02-16RHSA-2021:0548
Red Hat Enterprise Linux 8.1 Extended Update Supportnodejs:12-8010020201006223055.c27ad7f8Fixed 2020-11-04RHSA-2020:4903
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs12-nodejs-0:12.18.4-3.el7Fixed 2020-11-12RHSA-2020:5086
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs10-nodejs-0:10.23.1-2.el7Fixed 2021-02-15RHSA-2021:0521
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-nodejs12-nodejs-0:12.18.4-3.el7Fixed 2020-11-12RHSA-2020:5086
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-nodejs10-nodejs-0:10.23.1-2.el7Fixed 2021-02-15RHSA-2021:0521
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-nodejs12-nodejs-0:12.18.4-3.el7Fixed 2020-11-12RHSA-2020:5086
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-nodejs10-nodejs-0:10.23.1-2.el7Fixed 2021-02-15RHSA-2021:0521
Red Hat Enterprise Linux 8libuvNot affected
Red Hat Enterprise Linux 8nodejs:14/nodejsNot affected
Red Hat OpenStack Platform 13 (Queens) Operational ToolslibuvNot affected
Red Hat Quay 3quayFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-8252.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-111-03Hitachi Energy MicroSCADA Pro/X SYS6002022-04-21EnergySYS600: Versions 10.1.1 and priornone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON