Skip to content
Fencer Intel
high 7.8

CVE-2020-8252 json

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 6y ago modified 2mo ago also BIT-node-2020-8252 , BIT-node-min-2020-8252 , EUVD-2020-29122

cvss
7.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.7%
EPSS 0.7% chance of exploitation in 30 days, percentile 53%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami node 10.22.1, 12.18.4, 14.9.0
  • bitnami node-min 10.22.1, 12.18.4, 14.9.0
  • NodeJS Node 10.22.1, 12.18.4, 14.9.0
  • libuv1 Debian 14, Debian 13, Debian 12 1.39.0-1

debian advisories DEBIAN-CVE-2020-8252

  • libuv1 Ubuntu 20.04 LTS 1.34.2-1ubuntu1.1

ubuntu advisories UBUNTU-CVE-2020-8252

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • npm RHEL 8 1:6.14.10-1.10.23.1.1.module+el8.3.0+9502+012d8a97
  • nodejs RHEL 8 1:10.23.1-1.module+el8.3.0+9502+012d8a97
  • nodejs-nodemon RHEL 8 1.18.3-1.module+el8+2632+6c5111ed
  • nodejs-full-i18n RHEL 8 1:10.23.1-1.module+el8.3.0+9502+012d8a97
  • nodejs-packaging RHEL 8 17-3.module+el8+2873+aa7dfd9a
  • rh-nodejs10-nodejs RHEL 3 SOFTWARE_COLLECTIONS 10.23.1-2.el7
  • rh-nodejs10-npm RHEL 3 SOFTWARE_COLLECTIONS 6.14.10-10.23.1.2.el7
  • rh-nodejs12-nodejs RHEL 3 SOFTWARE_COLLECTIONS 12.18.4-3.el7

red hat advisories RHSA-2021:0548RHSA-2021:0521RHSA-2020:5086RHSA-2020:4272RHSA-2020:4903

  • nodejs10 SLES for SAP 15, SLES 15-LTSS, SLE Module for Web and Scripting 15 SP2 +3 more 10.22.1-1.27.1
  • nodejs10 SLE Module for Web and Scripting 12 10.22.1-1.30.1
  • nodejs12 SLE Module for Web and Scripting 15 SP2 12.18.4-4.6.1
  • nodejs12 SLE Module for Web and Scripting 12 12.18.4-1.20.1

suse advisories SUSE-SU-2020:2829-1SUSE-SU-2020:2823-1SUSE-SU-2020:2813-1SUSE-SU-2020:2812-1

  • nodejs10 openSUSE Leap 15.2 10.22.1-lp152.2.6.1
  • nodejs12 openSUSE Leap 15.2 12.18.4-lp152.3.6.1

opensuse advisories openSUSE-SU-2020:1660-1openSUSE-SU-2020:1616-1

  • nodejs-nodemon AlmaLinux 8 1.18.3-1.module_el8.3.0+2023+d2377ea3
  • nodejs-nodemon AlmaLinux 8 1.18.3-1.module_el8.3.0+2047+b07ac28e
  • nodejs-packaging AlmaLinux 8 17-3.module_el8.4.0+2224+b07ac28e
  • nodejs-packaging AlmaLinux 8 17-3.module_el8.4.0+2521+c668cc9f
  • nodejs-packaging AlmaLinux 8 17-3.module_el8.3.0+2023+d2377ea3

almalinux advisories ALSA-2021:0548ALSA-2020:4272

  • nodejs-nodemon Rocky Linux 8 1.18.3-1.module+el8.3.0+101+f84c7154
  • nodejs-packaging Rocky Linux 8 17-3.module+el8.3.0+101+f84c7154

rocky linux advisories RLSA-2021:0548RLSA-2020:4272

  • libuv Alpine 3.12 1.38.1-r0
  • libuv Alpine 3.24, Alpine 3.23, Alpine 3.22 +9 more 1.39.0-r0
  • nodejs Alpine 3.11 12.20.1-r0
  • nodejs Alpine 3.24, Alpine 3.23, Alpine 3.22 +10 more 12.18.4-r0

alpine advisories ALPINE-CVE-2020-8252

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2020-8252 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2020-8252 updated cvss 7.8

libuv: buffer overflow in realpath

  • Red Hat Quay 3 quay
    affected: no fix available “Fix deferred”
  • Red Hat Enterprise Linux AppStream (v. 8) nodejs 10.23.1-1.module+el8.3.0+9502+012d8a97, nodejs 12.18.4-2.module+el8.2.0+8361+192e434e, nodejs-packaging 17-3.module+el8+2873+aa7dfd9a, nodejs-nodemon 1.18.3-1.module+el8+2632+6c5111ed, nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45, npm 6.14.6-1.12.18.4.2.module+el8.2.0+8361+192e434e, +4 more
    fixed: vendor fix RHSA-2020:4272
  • Red Hat Enterprise Linux AppStream EUS (v. 8.1) nodejs 12.18.4-2.module+el8.1.0+8360+14141500, nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45, npm 6.14.6-1.12.18.4.2.module+el8.1.0+8360+14141500, nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45, nodejs-full-i18n 12.18.4-2.module+el8.1.0+8360+14141500
    fixed: vendor fix RHSA-2020:4903
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-nodejs10-nodejs 10.23.1-2.el7, rh-nodejs12-nodejs 12.18.4-3.el7, rh-nodejs12-npm 6.14.6-12.18.4.3.el7, rh-nodejs10-npm 6.14.10-10.23.1.2.el7 Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-nodejs10-nodejs 10.23.1-2.el7, rh-nodejs12-nodejs 12.18.4-3.el7, rh-nodejs12-npm 6.14.6-12.18.4.3.el7, rh-nodejs10-npm 6.14.10-10.23.1.2.el7 Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-nodejs10-nodejs 10.23.1-2.el7, rh-nodejs12-nodejs 12.18.4-3.el7, rh-nodejs12-npm 6.14.6-12.18.4.3.el7, rh-nodejs10-npm 6.14.10-10.23.1.2.el7 Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-nodejs10-nodejs 10.23.1-2.el7, rh-nodejs12-nodejs 12.18.4-3.el7, rh-nodejs12-npm 6.14.6-12.18.4.3.el7, rh-nodejs10-npm 6.14.10-10.23.1.2.el7
    fixed: vendor fix RHSA-2020:5086
  • Red Hat Enterprise Linux 8 npm, libuv, nodejs, nodejs-libs, nodejs-nodemon, nodejs-full-i18n, +2 more Red Hat OpenStack Platform 13 (Queens) Operational Tools libuv
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-22-111-03 updated cvss 7.8

Hitachi Energy MicroSCADA Pro/X SYS600

  • Hitachi Energy SYS600 <= 10.1.1, <=9.4 FP1, >= 10.2.1, >= 10.0.0, <= 10.2.1
    affected: mitigation “For more information see Hitachi Energy advisory 8DBD000075” search.abb.com

From CISA ICS and IT advisories (CSAF, https://github.com/cisagov/CSAF), a U.S. Government work; changed: reduced to products, statuses and remediations. CISA notification · csaf

Exploit prediction

0.71% chance of exploitation in the next 30 days, higher than 53% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 4.6 AV:L/AC:L/Au:N/C:P/I:P/A:P
OSV 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
bitnami node
>=10.0.0, <10.22.1
>=12.0.0, <12.18.4
>=14.0.0, <14.9.0
10.22.1
12.18.4
14.9.0
bitnami node-min
>=10.0.0, <10.22.1
>=12.0.0, <12.18.4
>=14.0.0, <14.9.0
10.22.1
12.18.4
14.9.0

Affected products

  • NodeJS Node

Classification

Weakness
  • CWE-120 Buffer Copy without Checking Size of Input
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.