CVE-2020-8172: TLS session reuse can lead to host certificate verification bypass
A TLS Hostname verification bypass vulnerability exists in NodeJS. This flaw allows an attacker to bypass TLS Hostname verification when a TLS client reuses HTTPS sessions.
Other sources
The 'session' event could be emitted before the 'secureConnect' event. It should not be, because the connection may fail to be authorized. If it was saved an authorized connection could be established later with the session ticket. Note that the https agent caches sessions, so is vulnerable to this.
The 'session' event will now only be emitted after the 'secureConnect' event, and only for authorized connections.
Does not affect Node.js 10.x.
— Node.Js
TLS session reuse can lead to host certificate verification bypass in node version < 12.18.0 and < 14.4.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/rh-nodejs12-nodejsto a version that resolves this vulnerability.Fixed in 0:12.18.2-1.el7 - Upgrade
Upgrade
debian/nodejsto a version that resolves this vulnerability.Fixed in 10.24.0~dfsg-1~deb10u1Fixed in 10.24.0~dfsg-1~deb10u3Fixed in 12.22.12~dfsg-1~deb11u4Fixed in 18.13.0+dfsg1-1 - Upgrade
Upgrade
redhat/nodejsto a version that resolves this vulnerability.Fixed in 12.18.0 - Upgrade
Upgrade
redhat/nodejsto a version that resolves this vulnerability.Fixed in 14.4.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 12.18.0Fixed in 14.4.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 12.18.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 14.4.0 - Upgrade
Upgrade
alpine/nodejsto a version that resolves this vulnerability.Fixed in 12.20.1-r0 - Upgrade
Upgrade
alpine/nodejsto a version that resolves this vulnerability.Fixed in 12.18.3-r0 - Upgrade
Upgrade
alpine/nodejsto a version that resolves this vulnerability.Fixed in 12.18.0-r0 - Upgrade
Upgrade
alpine/nodejs-currentto a version that resolves this vulnerability.Fixed in 14.4.0-r0 - Upgrade
Upgrade
Node.jsto a version that resolves this vulnerability.Fixed in 12.18.0 - Upgrade
Upgrade
Node.jsto a version that resolves this vulnerability.Fixed in 14.4.0
Event History
Parent advisories
This vulnerability appears in the following advisories.