Skip to content
OpenAdvisories
Unscored CVE-2020-8252 EUVD-2020-29122GHSA-c5r6-cm8r-wgh9

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…

Published Sep 18, 2020 · Updated Apr 30, 2025 · Assigned by hackerone

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 products

VendorProductAffectedFixed
NodeJS Node 4.0 – < 4.*, 5.0 – < 5.*, 6.0 – < 6.*, 7.0 – < 7.*, 8.0 – < 8.*, 9.0 – < 9.*, 10.0 – < 10.22.1, 11.0 – < 11.*, 12.0 – < 12.18.4, 13.0 – < 13.*, 14.0 – < 14.9.0 4.*

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libuv1 1.39.0-1 —
Debian 13 libuv1 1.39.0-1 —
Debian 12 libuv1 1.39.0-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libuv1 1.34.2-1ubuntu1.1 USN-4548-1
ReleasePackageFixed inAdvisory
RHEL 8 nodejs +3 1:10.23.1-1.module+el8.3.0+9502+012d8a97 RHSA-2021:0548, RHSA-2020:4272
RHEL 8 nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45 RHSA-2021:0548, RHSA-2020:4272
RHEL 8 nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45 RHSA-2021:0548, RHSA-2020:4272
RHEL 8 npm 1:6.14.6-1.12.18.4.2.module+el8.2.0+8361+192e434e RHSA-2021:0548, RHSA-2020:4272
RHEL 3 rh-nodejs10-nodejs +2 10.23.1-2.el7 RHSA-2021:0521
RHEL 3 rh-nodejs10-npm 6.14.10-10.23.1.2.el7 RHSA-2021:0521
RHEL 3 rh-nodejs12-nodejs +2 12.18.4-3.el7 RHSA-2020:5086
RHEL 3 rh-nodejs12-npm 6.14.6-12.18.4.3.el7 RHSA-2020:5086
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.1 EUS nodejs +3 1:12.18.4-2.module+el8.1.0+8360+14141500 RHSA-2020:4903
RHEL 8.1 EUS nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45 RHSA-2020:4903
RHEL 8.1 EUS nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45 RHSA-2020:4903
RHEL 8.1 EUS npm 1:6.14.6-1.12.18.4.2.module+el8.1.0+8360+14141500 RHSA-2020:4903

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 nodejs-nodemon 1.18.3-1.module_el8.3.0+2023+d2377ea3 ALSA-2021:0548, ALSA-2020:4272
AlmaLinux 8 nodejs-packaging 17-3.module_el8.3.0+2023+d2377ea3 ALSA-2021:0548, ALSA-2020:4272

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 nodejs-nodemon 1.18.3-1.module+el8.3.0+101+f84c7154 RLSA-2021:0548, RLSA-2020:4272
Rocky Linux 8 nodejs-packaging 17-3.module+el8.3.0+101+f84c7154 RLSA-2021:0548, RLSA-2020:4272
ReleasePackageFixed inAdvisory
SLES 15 SP2 nodejs10 10.22.1-1.27.1 SUSE-SU-2020:2829-1
SLES 15 SP2 nodejs12 12.18.4-4.6.1 SUSE-SU-2020:2813-1
SLES 15 SP1 nodejs10 10.22.1-1.27.1 SUSE-SU-2020:2829-1
SLES 15 nodejs10 10.22.1-1.27.1 SUSE-SU-2020:2829-1
SLES 12 nodejs10 10.22.1-1.30.1 SUSE-SU-2020:2823-1
SLES 12 nodejs12 12.18.4-1.20.1 SUSE-SU-2020:2812-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 nodejs10 10.22.1-1.27.1 SUSE-SU-2020:2829-1
SLE HPC 15 nodejs10 10.22.1-1.27.1 SUSE-SU-2020:2829-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.2 nodejs10 10.22.1-lp152.2.6.1 openSUSE-SU-2020:1660-1
openSUSE Leap 15.2 nodejs12 12.18.4-lp152.3.6.1 openSUSE-SU-2020:1616-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libuv 1.39.0-r0 —
Alpine v3.24 nodejs 12.18.4-r0 —
Alpine v3.23 libuv 1.39.0-r0 —
Alpine v3.23 nodejs 12.18.4-r0 —
Alpine v3.22 libuv 1.39.0-r0 —
Alpine v3.22 nodejs 12.18.4-r0 —
Alpine v3.21 libuv 1.39.0-r0 —
Alpine v3.21 nodejs 12.18.4-r0 —
Alpine v3.20 libuv 1.39.0-r0 —
Alpine v3.20 nodejs 12.18.4-r0 —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 libuv 1.39.0-r0 —
Alpine v3.19 nodejs 12.18.4-r0 —
Alpine v3.18 libuv 1.39.0-r0 —
Alpine v3.18 nodejs 12.18.4-r0 —
Alpine v3.17 libuv 1.39.0-r0 —
Alpine v3.17 nodejs 12.18.4-r0 —
Alpine v3.16 libuv 1.39.0-r0 —
Alpine v3.16 nodejs 12.18.4-r0 —
Alpine v3.15 libuv 1.39.0-r0 —
Alpine v3.15 nodejs 12.18.4-r0 —
Alpine v3.14 libuv 1.39.0-r0 —
Alpine v3.14 nodejs 12.18.4-r0 —
Alpine v3.13 libuv 1.39.0-r0 —
Alpine v3.13 nodejs 12.18.4-r0 —
Alpine v3.12 libuv 1.38.1-r0 —
Alpine v3.12 nodejs 12.18.4-r0 —
Alpine v3.11 nodejs 12.20.1-r0 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 nodejs +3 1:10.23.1-1.module+el8.3.0+9642+87902f83 ELSA-2021-0548, ELSA-2020-4272
Oracle Linux 8 nodejs-nodemon 1.18.3-1.module+el8.1.0+5392+4d6b561f ELSA-2021-0548, ELSA-2020-4272
Oracle Linux 8 nodejs-packaging 17-3.module+el8.1.0+5392+4d6b561f ELSA-2021-0548, ELSA-2020-4272
Oracle Linux 8 npm 1:6.14.6-1.12.18.4.2.module+el8.2.0+7806+0b44ae23 ELSA-2021-0548, ELSA-2020-4272

Advisories 20

References