CVE-2020-8265

Summary

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.

Affected Software

VendorProductVersion RangeStatus
NodeJSNode4.0 < 4.*affected
NodeJSNode5.0 < 5.*affected
NodeJSNode6.0 < 6.*affected
NodeJSNode7.0 < 7.*affected
NodeJSNode8.0 < 8.*affected
NodeJSNode9.0 < 9.*affected
NodeJSNode10.0 < 10.23.1affected
NodeJSNode11.0 < 11.*affected
NodeJSNode12.0 < 12.20.1affected
NodeJSNode13.0 < 13.*affected
NodeJSNode14.0 < 14.15.4affected
NodeJSNode15.0 < 15.5.1affected

Weaknesses

  • CWE-416: Use After Free (CWE-416)

ADP Enrichment

CVE Program Container

Additional References

References