CVE-2021-22921: Node.js before 16.4.1, 14.17.2, and 12.22.2 is vulnerable to local privilege escalation attacks under certain conditions on Windows platforms.
High CVSS 7.8
- CVE id
- CVE-2021-22921
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Node.js Runtimes and servers |
>= 12.0.0, < 12.22.2 >= 14.0.0, < 14.17.2 >= 16.0.0, < 16.4.1 |
12.22.2, 14.17.2, 16.4.1 |
How to fix it
Upgrade Node.js to the fixed release of the line you run: 12.22.2, 14.17.2, 16.4.1.
node --version
- Install the patched Node.js release of your major line (nvm install, or the node image tag) everywhere the app runs and builds.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
Node.js before 16.4.1, 14.17.2, and 12.22.2 is vulnerable to local privilege escalation attacks under certain conditions on Windows platforms. More specifically, improper configuration of permissions in the installation directory allows an attacker to perform two different escalation attacks: PATH and DLL hijacking.
References
- CVE-2021-22921 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2021-22921
- Web: https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- Web: https://hackerone.com/reports/1211160
- Web: https://nodejs.org/en/blog/vulnerability/july-2021-security-releases/
- Web: https://security.netapp.com/advisory/ntap-20210805-0003/
- Web: https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- Web: https://hackerone.com/reports/1211160
- Web: https://nodejs.org/en/blog/vulnerability/july-2021-security-releases/
- Web: https://security.netapp.com/advisory/ntap-20210805-0003/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.