patchminder
Proof of concept · GitHub CVE-2024-22017

Privilege escalationin NodeJS Node.

Published 19 Mar 2024 · Updated 30 Apr 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 7.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.9% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 18.18.0, 20.4.0, 21.6.1
In plain words

setuid() does not affect libuv's internal io_uring operations if initialized before the call to setuid(). This allows the process to perform privileged operations despite presumably having dropped such privileges through a call to setuid(). This vulnerability affects all users using version greater or equal than Node.js 18.18.0, Node.js 20.4.0 and Node.js 21.

What to do now
  • Upgrade nodejs to 18.18.0, 20.4.0, 21.6.1 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Node
Not confirmed
Not confirmed
CVE record
nodejs
18.0.0 to before 18.18.0
18.18.0
CISA
nodejs
20.0.0 to before 20.4.0
20.4.0
CISA
nodejs
21.0.0 to before 21.6.1
21.6.1
CISA

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 4 Jan 2024
    CVE ID reserved by hackerone.
  2. 19 Mar 2024
    Published in the CVE List.
  3. 12 Jan 2025
    First public proof of concept on GitHub.
  4. 30 Apr 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundSpiralBL0CK/cve-2024-22017_to_test0 stars · created 12 Jan 2025

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Node vulnerabilities

Same weakness: Execution with unnecessary privileges

All CWE-250 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-22017: Privilege escalation in NodeJS Node. https://patchminder.com/cve/cve-2024-22017/ (accessed 5 December 2026).