CVE & CISA-KEV Catalog

CVE-2024-21896

CRITICAL
9.8
CVSS v3
NVD

Description

The permission model protects itself against path traversal attacks by calling path.resolve() on any paths given by the user. If the path is to be treated as a Buffer, the implementation uses Buffer.from() to obtain a Buffer from the result of path.resolve(). By monkey-patching Buffer internals, namely, Buffer.prototype.utf8Write, the application can modify the result of path.resolve(), which leads to a path traversal vulnerability. This vulnerability affects all users using the experimental permission model in Node.js 20 and Node.js 21. Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.

How to fix

Remediation Available
nodejsRed Hat / RHEL
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.x86_64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.src::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.aarch64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.aarch64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.ppc64le::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.s390x::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.x86_64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.ppc64le::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.src::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.s390x::nodejs:20RHSA-2024:1688
nodejsRocky
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.x86_64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.x86_64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.s390x::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.ppc64le::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.aarch64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.src::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.s390x::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.aarch64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.src::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.ppc64le::nodejs:20RHSA-2024:1687
nodejs-debuginfoRed Hat / RHEL
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.ppc64le::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.aarch64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.aarch64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.s390x::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.x86_64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.x86_64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.s390x::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.ppc64le::nodejs:20RHSA-2024:1687
nodejs-debuginfoRocky
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.x86_64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.s390x::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.ppc64le::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.aarch64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.aarch64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.ppc64le::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.s390x::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.x86_64::nodejs:20RHSA-2024:1688
nodejs-debugsourceRed Hat / RHEL
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.aarch64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.ppc64le::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.aarch64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.x86_64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.ppc64le::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.s390x::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.x86_64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.s390x::nodejs:20RHSA-2024:1688
nodejs-debugsourceRocky
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.aarch64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.x86_64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.ppc64le::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.s390x::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.s390x::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.x86_64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.ppc64le::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.aarch64::nodejs:20RHSA-2024:1687
nodejs-develRocky
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.x86_64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.s390x::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.aarch64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.x86_64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.ppc64le::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.ppc64le::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.aarch64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.s390x::nodejs:20RHSA-2024:1687
nodejs-develRed Hat / RHEL
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.ppc64le::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.s390x::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.s390x::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.x86_64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.aarch64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.aarch64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.ppc64le::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.x86_64::nodejs:20RHSA-2024:1688
nodejs-docsRocky
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.noarch::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.noarch::nodejs:20RHSA-2024:1688
nodejs-docsRed Hat / RHEL
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.noarch::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.noarch::nodejs:20RHSA-2024:1687
nodejs-full-i18nRocky
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.aarch64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.x86_64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.x86_64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.s390x::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.s390x::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.ppc64le::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.aarch64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.ppc64le::nodejs:20RHSA-2024:1687
nodejs-full-i18nRed Hat / RHEL
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.s390x::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.x86_64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.ppc64le::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.s390x::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.aarch64::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.x86_64::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.ppc64le::nodejs:20RHSA-2024:1688
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.aarch64::nodejs:20RHSA-2024:1687
nodejs-nodemonRocky
Fixed in:0:3.0.1-1.module+el9.3.0.z+20478+84a9f781.src::nodejs:20RHSA-2024:1688
Fixed in:0:3.0.1-1.module+el9.3.0.z+20478+84a9f781.noarch::nodejs:20RHSA-2024:1688
Fixed in:0:3.0.1-1.module+el8.9.0+20473+c4e3d824.src::nodejs:20RHSA-2024:1687
Fixed in:0:3.0.1-1.module+el8.9.0+20473+c4e3d824.noarch::nodejs:20RHSA-2024:1687
nodejs-nodemonRed Hat / RHEL
Fixed in:0:3.0.1-1.module+el9.3.0.z+20478+84a9f781.src::nodejs:20RHSA-2024:1688
Fixed in:0:3.0.1-1.module+el8.9.0+20473+c4e3d824.noarch::nodejs:20RHSA-2024:1687
Fixed in:0:3.0.1-1.module+el8.9.0+20473+c4e3d824.src::nodejs:20RHSA-2024:1687
Fixed in:0:3.0.1-1.module+el9.3.0.z+20478+84a9f781.noarch::nodejs:20RHSA-2024:1688
nodejs-packagingRed Hat / RHEL
Fixed in:0:2021.06-4.module+el9.3.0+19518+63aad52d.noarch::nodejs:20RHSA-2024:1688
Fixed in:0:2021.06-4.module+el9.3.0+19518+63aad52d.src::nodejs:20RHSA-2024:1688
Fixed in:0:2021.06-4.module+el8.9.0+19519+e25b965a.noarch::nodejs:20RHSA-2024:1687
Fixed in:0:2021.06-4.module+el8.9.0+19519+e25b965a.src::nodejs:20RHSA-2024:1687
nodejs-packagingRocky
Fixed in:0:2021.06-4.module+el8.9.0+19519+e25b965a.noarch::nodejs:20RHSA-2024:1687
Fixed in:0:2021.06-4.module+el9.3.0+19518+63aad52d.src::nodejs:20RHSA-2024:1688
Fixed in:0:2021.06-4.module+el8.9.0+19519+e25b965a.src::nodejs:20RHSA-2024:1687
Fixed in:0:2021.06-4.module+el9.3.0+19518+63aad52d.noarch::nodejs:20RHSA-2024:1688
nodejs-packaging-bundlerRed Hat / RHEL
Fixed in:0:2021.06-4.module+el8.9.0+19519+e25b965a.noarch::nodejs:20RHSA-2024:1687
Fixed in:0:2021.06-4.module+el9.3.0+19518+63aad52d.noarch::nodejs:20RHSA-2024:1688
nodejs-packaging-bundlerRocky
Fixed in:0:2021.06-4.module+el9.3.0+19518+63aad52d.noarch::nodejs:20RHSA-2024:1688
Fixed in:0:2021.06-4.module+el8.9.0+19519+e25b965a.noarch::nodejs:20RHSA-2024:1687
npmRed Hat / RHEL
Fixed in:1:10.2.4-1.20.11.1.1.module+el9.3.0+21385+bac43d5a.s390x::nodejs:20RHSA-2024:1688
Fixed in:1:10.2.4-1.20.11.1.1.module+el8.9.0+21380+12032667.ppc64le::nodejs:20RHSA-2024:1687
Fixed in:1:10.2.4-1.20.11.1.1.module+el8.9.0+21380+12032667.aarch64::nodejs:20RHSA-2024:1687
Fixed in:1:10.2.4-1.20.11.1.1.module+el9.3.0+21385+bac43d5a.x86_64::nodejs:20RHSA-2024:1688
Fixed in:1:10.2.4-1.20.11.1.1.module+el9.3.0+21385+bac43d5a.ppc64le::nodejs:20RHSA-2024:1688
Fixed in:1:10.2.4-1.20.11.1.1.module+el8.9.0+21380+12032667.x86_64::nodejs:20RHSA-2024:1687
Fixed in:1:10.2.4-1.20.11.1.1.module+el9.3.0+21385+bac43d5a.aarch64::nodejs:20RHSA-2024:1688
Fixed in:1:10.2.4-1.20.11.1.1.module+el8.9.0+21380+12032667.s390x::nodejs:20RHSA-2024:1687
npmRocky
Fixed in:1:10.2.4-1.20.11.1.1.module+el8.9.0+21380+12032667.aarch64::nodejs:20RHSA-2024:1687
Fixed in:1:10.2.4-1.20.11.1.1.module+el9.3.0+21385+bac43d5a.x86_64::nodejs:20RHSA-2024:1688
Fixed in:1:10.2.4-1.20.11.1.1.module+el8.9.0+21380+12032667.x86_64::nodejs:20RHSA-2024:1687
Fixed in:1:10.2.4-1.20.11.1.1.module+el8.9.0+21380+12032667.ppc64le::nodejs:20RHSA-2024:1687
Fixed in:1:10.2.4-1.20.11.1.1.module+el9.3.0+21385+bac43d5a.aarch64::nodejs:20RHSA-2024:1688
Fixed in:1:10.2.4-1.20.11.1.1.module+el9.3.0+21385+bac43d5a.ppc64le::nodejs:20RHSA-2024:1688
Fixed in:1:10.2.4-1.20.11.1.1.module+el8.9.0+21380+12032667.s390x::nodejs:20RHSA-2024:1687
Fixed in:1:10.2.4-1.20.11.1.1.module+el9.3.0+21385+bac43d5a.s390x::nodejs:20RHSA-2024:1688
Node.jsWindows application
Affected:21.0.0 21.6.2Fixed in:21.6.2Node.js Foundation
Affected:20.0.0 20.11.1Fixed in:20.11.1Node.js Foundation
Node.js (LTS)Windows application
Affected:21.0.0 21.6.2Fixed in:21.6.2Node.js Foundation
Affected:20.0.0 20.11.1Fixed in:20.11.1Node.js Foundation

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

1.26%probability of exploitation in 30 days
66thpercentile

Moderate risk: more likely to be exploited than 66% of all known CVEs.

References

Third-Party Advisory2
Issue Tracking1
Embed a live status badge for CVE-2024-21896
CVE-2024-21896 severity badge

Markdown

[![CVE-2024-21896](https://tridentstack.com/cve/badge/CVE-2024-21896.svg)](https://tridentstack.com/cve/CVE-2024-21896)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-21896"><img src="https://tridentstack.com/cve/badge/CVE-2024-21896.svg" alt="CVE-2024-21896"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-04-02.