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
nodejs20Amazon
Fixed in:1:20.11.1-1.amzn2023.0.1
Fixed in:1:20.11.1-1.amzn2023.0.1
nodejs20-debuginfoAmazon
Fixed in:1:20.11.1-1.amzn2023.0.1
Fixed in:1:20.11.1-1.amzn2023.0.1
nodejs20-debugsourceAmazon
Fixed in:1:20.11.1-1.amzn2023.0.1
Fixed in:1:20.11.1-1.amzn2023.0.1
nodejs20-develAmazon
Fixed in:1:20.11.1-1.amzn2023.0.1
Fixed in:1:20.11.1-1.amzn2023.0.1
nodejs20-docsAmazon
Fixed in:1:20.11.1-1.amzn2023.0.1
nodejs20-full-i18nAmazon
Fixed in:1:20.11.1-1.amzn2023.0.1
Fixed in:1:20.11.1-1.amzn2023.0.1
nodejs20-libsAmazon
Fixed in:1:20.11.1-1.amzn2023.0.1
Fixed in:1:20.11.1-1.amzn2023.0.1
nodejs20-libs-debuginfoAmazon
Fixed in:1:20.11.1-1.amzn2023.0.1
Fixed in:1:20.11.1-1.amzn2023.0.1
nodejs20-npmAmazon
Fixed in:1:10.2.4-1.20.11.1.1.amzn2023.0.1
Fixed in:1:10.2.4-1.20.11.1.1.amzn2023.0.1
v8-11.3-develAmazon
Fixed in:3:11.3.244.8-1.20.11.1.1.amzn2023.0.1
Fixed in:3:11.3.244.8-1.20.11.1.1.amzn2023.0.1
nodejsRed Hat / RHEL
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.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+el8.9.0+21380+12032667.src::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.ppc64le::nodejs:20RHSA-2024:1688
nodejsRocky
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.src::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+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+el9.3.0+21385+bac43d5a.src::nodejs:20RHSA-2024:1688
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+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.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+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
nodejs-debuginfoRocky
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
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+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
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.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+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+el9.3.0+21385+bac43d5a.aarch64::nodejs:20RHSA-2024:1688
nodejs-debugsourceRocky
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+el9.3.0+21385+bac43d5a.ppc64le::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
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
nodejs-develRed 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.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+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.s390x::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el8.9.0+21380+12032667.ppc64le::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.ppc64le::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+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+el8.9.0+21380+12032667.aarch64::nodejs:20RHSA-2024:1687
nodejs-docsRocky
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-docsRed Hat / RHEL
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-full-i18nRed Hat / RHEL
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+el8.9.0+21380+12032667.aarch64::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.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-i18nRocky
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
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.x86_64::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.s390x::nodejs:20RHSA-2024:1687
Fixed in:1:20.11.1-1.module+el9.3.0+21385+bac43d5a.aarch64::nodejs:20RHSA-2024:1688
nodejs-nodemonRocky
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
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+el9.3.0.z+20478+84a9f781.src::nodejs:20RHSA-2024:1688
nodejs-nodemonRed Hat / RHEL
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.src::nodejs:20RHSA-2024:1688
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+el8.9.0+19519+e25b965a.src::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.noarch::nodejs:20RHSA-2024:1687
nodejs-packagingRocky
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.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+el9.3.0+19518+63aad52d.noarch::nodejs:20RHSA-2024:1688
nodejs-packaging-bundlerRocky
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-bundlerRed 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+el8.9.0+19519+e25b965a.noarch::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+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.s390x::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.ppc64le::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
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
npmRed Hat / RHEL
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.s390x::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.s390x::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.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

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

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
68thpercentile

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

References

Third-Party Advisory2
Issue Tracking1

Related Vulnerabilities

Other CWE-27 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-23897Critical9.8100%KEV + RansomFix
CVE-2024-24809High8.554%--
CVE-2023-34125Medium6.525%-Fix
CVE-2022-24785High7.55.5%-Fix
CVE-2023-50254Critical9.32.1%-Fix
CVE-2021-35027High7.52.0%--

Common questions

How do I fix CVE-2024-21896?

Published advisories record a fix for 32 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2024-21896 being actively exploited?

Not that we know of. CVE-2024-21896 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 1.3% is the estimated probability that it will be exploited in the next 30 days. That is higher than 68% of all scored CVEs.

How severe is CVE-2024-21896?

CVE-2024-21896 has a CVSS v3 base score of 9.8, rated critical. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2024-21896 affect?

Published advisories record a fix for nodejs20 (Amazon), nodejs20-debuginfo (Amazon), nodejs20-debugsource (Amazon), nodejs20-devel (Amazon), and 28 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

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>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

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 2026-06-17.