# CVE-2024-21896: The permission model protects itself against path traversal attacks by calling path.resolve() on any paths given by the user.

- Severity: High 7.9 (CVSS:3.0, scored by hackerone) `CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N/CR:M/IR:M/AR:M`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.26%, higher than 70% of CVEs (2026-12-01)
- Published: 2024-02-20T01:31:08.176Z
- Modified: 2026-09-08T08:48:17.704Z
- Also known as: BIT-NODE-2024-21896, BIT-NODE-MIN-2024-21896
- Weaknesses: CWE-27
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- NodeJS Node: from 4.0 before 4.*; from 5.0 before 5.*; from 6.0 before 6.*; from 7.0 before 7.*; from 8.0 before 8.*; from 9.0 before 9.*; from 10.0 before 10.*; from 11.0 before 11.*; from 12.0 before 12.*; from 13.0 before 13.*; from 14.0 before 14.*; from 15.0 before 15.*; and 5 more
- nodejs nodejs: 21.6.1 (not affected: 20.11.0)
- nodejs node.js: from 20.0.0 before 20.11.1; from 21.0.0 before 21.6.2
- node (Bitnami): from 20.0.0 before 20.12.0; from 21.0.0 before 22.1.0
- node-min (Bitnami): from 20.0.0 before 20.18.1; from 21.0.0 before 22.12.0

## Every score

- hackerone: CVSS:3.0 7.9 High `CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N/CR:M/IR:M/AR:M`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://hackerone.com/reports/2218653> (issue-tracking, report)
- <https://security.netapp.com/advisory/ntap-20240329-0002/> (advisory, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2024/03/11/1> (advisory, mailing-list, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21896> (web)
- <https://github.com/nodejs/node/releases/tag/v20.11.1> (web)
- <https://github.com/nodejs/node/releases/tag/v21.6.2> (web)
- <https://nodejs.org/en/blog/vulnerability/february-2024-security-releases#path-traversal-by-monkey-patching-buffer-internals-cve-2024-21896---high> (web)

## Sources

- CVE List: [CVE-2024-21896](https://www.cve.org/CVERecord?id=CVE-2024-21896), CVE Terms of Use, modified 2025-04-30
- NVD: [CVE-2024-21896](https://nvd.nist.gov/vuln/detail/CVE-2024-21896), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-NODE-2024-21896](https://osv.dev/vulnerability/BIT-NODE-2024-21896), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-NODE-MIN-2024-21896](https://osv.dev/vulnerability/BIT-NODE-MIN-2024-21896), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-21896 · Whole record: https://cve.day/CVE-2024-21896.json · Rebuilt by cve.day 2026-11-25T22:58:36.910Z
