CVE-2020-8265
nodejs: use-after-free in the TLS implementation
Overview
Description
Node.js versions before 10.23.1, 12.20.1, 14.15.4, 15.5.1 are vulnerable to a use-after-free bug in its TLS implementation. When writing to a TLS enabled socket, node::StreamBase::Write calls node::TLSWrap::DoWrite with a freshly allocated WriteWrap object as first argument. If the DoWrite method does not return an error, this object is passed back to the caller as part of a StreamWriteResult structure. This may be exploited to corrupt memory leading to a Denial of Service or potentially other exploits.
Source: OX vulnerability database
Severity
8.1 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-416
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | node | >=10.0.0, <10.23.1>=12.0.0, <12.20.1>=14.0.0, <14.15.4>=15.0.0, <15.5.1 | 10.23.112.20.114.15.415.5.1 |
| Bitnami | node-min | >=10.0.0, <10.23.1>=12.0.0, <12.20.1>=14.0.0, <14.15.4>=15.0.0, <15.5.1 | 10.23.112.20.114.15.415.5.1 |
Open a package to see all its vulnerabilities.
Operating systems · 57 fixes
Oracle Linux 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | nodejs +3 | 1:14.15.4-2.module+el8.3.0+9657+a08a905a |
| 8 | npm | 1:6.14.10-1.14.15.4.2.module+el8.3.0+9657+a08a905a |
| 8 | nodejs-nodemon | 2.0.3-1.module+el8.3.0+9643+8c99e187 |
| 8 | nodejs-packaging | 23-3.module+el8.3.0+7818+6cd30d85 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nodejs +1 | 14.16.0-1.ph4 |
Red Hat 4 releases · 11 packages
| 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.20.1-1.el7 | RHSA-2021:0485 |
| 7 | rh-nodejs14-nodejs +2 | 0:14.15.4-2.el7 | RHSA-2021:0421 |
| 7 | rh-nodejs12-nodejs-nodemon | 0:2.0.3-1.el7 | RHSA-2021:0485 |
| 7 | rh-nodejs10-npm | 0:6.14.10-10.23.1.2.el7 | RHSA-2021:0521 |
| 7 | rh-nodejs12-npm | 0:6.14.10-12.20.1.1.el7 | RHSA-2021:0485 |
13 more rows
alma 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:10) | nodejs-packaging | 17-3.module_el8.3.0+2023+d2377ea3 |
| 8 (nodejs:10) | nodejs-nodemon | 2.0.3-1.module_el8.4.0+2521+c668cc9f |
| 8 (nodejs:12) | nodejs-nodemon | 2.0.3-1.module_el8.4.0+2521+c668cc9f |
| 8 (nodejs:12) | nodejs-packaging | 23-3.module_el8.4.0+2522+3bd42762 |
alpine 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | nodejs | 14.15.4-r0 |
| 3.22 | nodejs-current | 15.5.1-r0 |
| 3.23 | nodejs | 14.15.4-r0 |
| 3.23 | nodejs-current | 15.5.1-r0 |
| 3.24 | nodejs | 14.15.4-r0 |
| 3.24 | nodejs-current | 15.5.1-r0 |
2 more rows
debian 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | nodejs | 10.23.1~dfsg-1~deb10u1 |
| 11 | nodejs | 12.20.1~dfsg-1 |
| 12 | nodejs | 12.20.1~dfsg-1 |
| 13 | nodejs | 12.20.1~dfsg-1 |
| 14 | nodejs | 12.20.1~dfsg-1 |
| 9 | nodejs | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nodejs | 12.20.1~dfsg-1 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | nodejs14 +3 | 14.17.5-1.2 | openSUSE-SU-2024:11096-1 |
rocky 2 releases · 2 packages
| 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 |
| 8 (nodejs:12) | nodejs-packaging | 17-3.module+el8.3.0+101+f84c7154 |
| 8 (nodejs:12) | nodejs-nodemon | 2.0.3-1.module+el8.3.0+100+234774f7 |
| 8 (nodejs:12) | nodejs-nodemon | 2.0.3-1.module+el8.4.0+638+5344c6f7 |
| 8 (nodejs:12) | nodejs-nodemon | 2.0.3-1.module+el8.6.0+982+9fdca2d4 |
3 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-nodejs | 12.20.1~dfsg-1 |
ubuntu 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | nodejs | 8.10.0~dfsg-2ubuntu0.4+esm2 |
| 20.04 | nodejs | 10.19.0~dfsg-3ubuntu1.1 |
| 20.04-ESM | nodejs | 10.19.0~dfsg-3ubuntu1.1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2020-8265
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1857977
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1892430
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1898554
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1898680
- 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
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15366
Show all 33 references
- 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-8265
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8277
- 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-0551.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2021:0551
- github.com https://github.com/nodejs/node/commit/7f178663ebffc82c9f8a5a1b6bf2da0c263a30ed (v10.23.1)
- hackerone.com https://hackerone.com/reports/988103
- linux.oracle.com https://linux.oracle.com/cve/CVE-2020-8265.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2021-0551.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H472D5HPXN6RRXCNFML3BK5OYC52CXF2/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K4I6MZNC7C7VIDQR267OL4TVCI3ZKAC4/
- nodejs.org https://nodejs.org/en/blog/release/v10.23.1/
- nodejs.org https://nodejs.org/en/blog/vulnerability/january-2021-security-releases/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2020-8265
- security.gentoo.org https://security.gentoo.org/glsa/202101-07
- security.netapp.com https://security.netapp.com/advisory/ntap-20210212-0003/
- ubuntu.com https://ubuntu.com/security/notices/USN-6380-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2020-8265
- www.debian.org https://www.debian.org/security/2021/dsa-4826
- www.oracle.com https://www.oracle.com/security-alerts/cpujan2021.html
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.