Process memory corruption via HTTP/2 stream cancellation
Published Oct 7, 2021 · Updated Apr 30, 2025
Use-after-free in Node.js before 16.6.0, 14.17.4, and 12.22.4 allows remote attackers to corrupt process memory via HTTP/2 cancellation. The native HTTP/2 binding closes and frees a stream reentrantly while nghttp2 is still processing received session data, leaving later callback work to access released memory. The affected path requires an application using HTTP/2 and cancellation during an active stream; demonstrated outcomes include assertion failure, double free, and process crash.
Summary
What happened
Use-after-free in Node.js before 16.6.0, 14.17.4, and 12.22.4 allows remote attackers to corrupt process memory via HTTP/2 cancellation. The native HTTP/2 binding closes and frees a stream reentrantly while nghttp2 is still processing received session data, leaving later callback work to access released memory. The affected path requires an application using HTTP/2 and cancellation during an active stream; demonstrated outcomes include assertion failure, double free, and process crash.
The record
- CVE
- CVE-2021-22930
- Published
- Oct 7, 2021
- Updated
- Apr 30, 2025
- Vendor
- Node.js
- Product
- Node.js
- Classifications
- CWE-416, T1499.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Oct 7, 2021CVE publishedPublication date reported by the CVE source.
- Apr 30, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=10.0 <10.*
- Affected versionversion=11.0 <11.*
- Affected versionversion=12.0 <12.22.4
- Affected versionversion=13.0 <13.*
- Affected versionversion=14.0 <14.17.4
- Affected versionversion=15.0 <15.*
- Affected versionversion=16.0 <16.6.0
- Affected versionversion=4.0 <4.*
- Affected versionversion=5.0 <5.*
- Affected versionversion=6.0 <6.*
- Affected versionversion=7.0 <7.*
- Affected versionversion=8.0 <8.*
- Affected versionversion=9.0 <9.*
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Node.js issue 38964 reproduction archiveproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo