CVE-2020-8252
libuv: buffer overflow in realpath
Overview
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.
Source: OX vulnerability database
Severity
7.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-120
Affected packages · 2
Operating systems · 40 fixes
Oracle Linux 1 release · 4 packages
fixed 4
nodejs-nodemon
nodejs-packaging
nodejs
npm
| Release | Package | Fixed in |
|---|---|---|
| 8 | nodejs-nodemon | 1.18.3-1.module+el8.1.0+5393+aaf413e3 |
| 8 | nodejs-packaging | 17-3.module+el8.1.0+5393+aaf413e3 |
| 8 | nodejs +3 | 1:12.18.4-2.module+el8.2.0+7806+0b44ae23 |
| 8 | npm | 1:6.14.10-1.10.23.1.1.module+el8.3.0+9642+87902f83 |
Photon OS 1 release · 1 package
fixed 1
libuv
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | libuv +1 | 1.45.0-1.ph4 |
Red Hat 3 releases · 8 packages
fixed 16
rh-nodejs10-nodejs
rh-nodejs12-nodejs
rh-nodejs10-npm
rh-nodejs12-npm
nodejs-nodemon
nodejs-packaging
+2
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | rh-nodejs10-nodejs +2 | 0:10.23.1-2.el7 | RHSA-2021:0521 |
| 7 | rh-nodejs12-nodejs +2 | 0:12.18.4-3.el7 | RHSA-2020:5086 |
| 7 | rh-nodejs10-npm | 0:6.14.10-10.23.1.2.el7 | RHSA-2021:0521 |
| 7 | rh-nodejs12-npm | 0:6.14.6-12.18.4.3.el7 | RHSA-2020:5086 |
| 8 (nodejs:10) | nodejs-nodemon | 0:1.18.3-1.module+el8+2632+6c5111ed | RHSA-2021:0548 |
| 8 (nodejs:10) | nodejs-packaging | 0:17-3.module+el8+2873+aa7dfd9a | RHSA-2021:0548 |
10 more rows
alma 1 release · 2 packages
fixed 2
nodejs-nodemon
nodejs-packaging
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:10) | nodejs-nodemon | 1.18.3-1.module_el8.3.0+2023+d2377ea3 |
| 8 (nodejs:10) | nodejs-packaging | 17-3.module_el8.3.0+2023+d2377ea3 |
alpine 4 releases · 2 packages
fixed 8
libuv
nodejs
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | libuv | 1.39.0-r0 |
| 3.22 | nodejs | 12.18.4-r0 |
| 3.23 | libuv | 1.39.0-r0 |
| 3.23 | nodejs | 12.18.4-r0 |
| 3.24 | libuv | 1.39.0-r0 |
| 3.24 | nodejs | 12.18.4-r0 |
2 more rows
debian 4 releases · 1 package
fixed 4
libuv1
| Release | Package | Fixed in |
|---|---|---|
| 11 | libuv1 | 1.39.0-1 |
| 12 | libuv1 | 1.39.0-1 |
| 13 | libuv1 | 1.39.0-1 |
| 14 | libuv1 | 1.39.0-1 |
echo 1 release · 1 package
fixed 1
libuv1
| Release | Package | Fixed in |
|---|---|---|
| libuv1 | 1.39.0-1 |
rocky 1 release · 2 packages
fixed 2
nodejs-nodemon
nodejs-packaging
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:10) | nodejs-nodemon | 1.18.3-1.module+el8.3.0+101+f84c7154 |
| 8 (nodejs:10) | nodejs-packaging | 17-3.module+el8.3.0+101+f84c7154 |
ubuntu 2 releases · 1 package
fixed 2
libuv1
| Release | Package | Fixed in |
|---|---|---|
| 20.04 | libuv1 | 1.34.2-1ubuntu1.1 |
| 20.04-ESM | libuv1 | 1.34.2-1ubuntu1.1 |
References
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00011.html
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00023.html
- access.redhat.com https://access.redhat.com/security/cve/CVE-2020-8252
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1840004
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1856875
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1857977
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1868196
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1879315
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1892430
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1898680
Show all 37 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1907444
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1912854
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1912863
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15095
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15366
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7608
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7754
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7774
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7788
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8116
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8252
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8265
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8287
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2021-0548.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2021:0548
- hackerone.com https://hackerone.com/reports/965914
- linux.oracle.com https://linux.oracle.com/cve/CVE-2020-8252.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2021-0548.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4OOYAMJVLLCLXDTHW3V5UXNULZBBK4O6/
- nodejs.org https://nodejs.org/en/blog/vulnerability/september-2020-security-releases/
- nodejs.org https://nodejs.org/en/blog/vulnerability/september-2020-security-releases/#fs-realpath-native-on-may-cause-buffer-overflow-medium-cve-2020-8252
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2020-8252
- security.gentoo.org https://security.gentoo.org/glsa/202009-15
- security.netapp.com https://security.netapp.com/advisory/ntap-20201009-0004/
- ubuntu.com https://ubuntu.com/security/notices/USN-4548-1
- usn.ubuntu.com https://usn.ubuntu.com/4548-1/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2020-8252
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.