CVE-2020-8265: 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.
High CVSS 8.1
- CVE id
- CVE-2020-8265
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Node.js Runtimes and servers |
>= 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.1, 12.20.1, 14.15.4, 15.5.1 |
How to fix it
Upgrade Node.js to the fixed release of the line you run: 10.23.1, 12.20.1, 14.15.4, 15.5.1.
node --version
- Install the patched Node.js release of your major line (nvm install, or the node image tag) everywhere the app runs and builds.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2020-8265 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2020-8265
- Web: https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- Web: https://hackerone.com/reports/988103
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H472D5HPXN6RRXCNFML3BK5OYC52CXF2/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K4I6MZNC7C7VIDQR267OL4TVCI3ZKAC4/
- Web: https://nodejs.org/en/blog/vulnerability/january-2021-security-releases/
- Web: https://security.gentoo.org/glsa/202101-07
- Web: https://security.netapp.com/advisory/ntap-20210212-0003/
- Web: https://www.debian.org/security/2021/dsa-4826
- Web: https://www.oracle.com/security-alerts/cpujan2021.html
- Web: https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- Web: https://hackerone.com/reports/988103
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H472D5HPXN6RRXCNFML3BK5OYC52CXF2/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K4I6MZNC7C7VIDQR267OL4TVCI3ZKAC4/
- Web: https://nodejs.org/en/blog/vulnerability/january-2021-security-releases/
- Web: https://security.gentoo.org/glsa/202101-07
- Web: https://security.netapp.com/advisory/ntap-20210212-0003/
- Web: https://www.debian.org/security/2021/dsa-4826
- Web: https://www.oracle.com/security-alerts/cpujan2021.html
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.