CVE-2020-8265
Reported by hackerone · Published January 6, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nodejs | Alpine | 14.15.4-r0, 12.20.1-r0 |
| nodejs | Arch Linux | 15.5.1-1 |
| node-min | Bitnami | 15.5.1, 14.15.4, 12.20.1, 10.23.1 |
| node | dhi.docker.com | 15.5.1, 14.15.4, 12.20.1, 10.23.1 |
| nodejs-current | Alpine | 15.5.1-r0 |
| node | Bitnami | 15.5.1, 14.15.4, 12.20.1, 10.23.1 |
| node.js | nodejs | 15.5.1, 14.15.4, 12.20.1, 10.23.1 |
| node | DHI | 15.5.1, 14.15.4, 12.20.1, 10.23.1 |
| nodejs | Ubuntu:Pro:16.04:LTS | 4.2.6~dfsg-1ubuntu4.2+esm2 |
| nodejs | Ubuntu:20.04:LTS | 10.19.0~dfsg-3ubuntu1.1 |
| alpine/nodejs-20 | alpine | 15.5.1, 14.15.4, 12.20.1, 10.23.1 |
| node | Bitnami | 15.5.1, 14.15.4, 12.20.1, 10.23.1 |
7 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| NodeJS | Node | 4.0, 5.0, 6.0 |
| alpine | nodejs | 0, 0 |
| arch | nodejs | 0 |
| NodeJS | Node.js | |
| alpine | nodejs-current | 0 |
| NodeJS | Node | 5.0, 6.0, 7.0 |
Timeline
- Jan 5, 2021 PoC Published
- Jan 6, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 7, 2026 Distribution Patch (10 in total, the first dated here)
- Mar 7, 2026 Security Advisory (16 in total, the first dated here)
- Aug 28, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-8265
vulnetix vdb fixes CVE-2020-8265
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-8265/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- DSA-4826 vendor-advisoryx_refsource_DEBIAN
- FEDORA-2021-fb1a136393 vendor-advisoryx_refsource_FEDORA
- GLSA-202101-07 vendor-advisoryx_refsource_GENTOO
- FEDORA-2021-d5b2c18fe6 vendor-advisoryx_refsource_FEDORA
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_CONFIRM