ADVISORIES

Vulnerability

CVE-2024-21896

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.

17 advisories report this vulnerability, across 11 ecosystems.

Advisories

  • ALAS2023-2024-544

    Amazon Linux 2023 - ALAS2023-2024-544: Important priority package update for nodejs20

    Important CVE-2024-21890CVE-2024-21891CVE-2024-21892CVE-2024-21896 Amazon Linux Updated 13 March 2024
  • ALSA-2024:1687

    Important: nodejs:20 security update

    CVE-2023-46809CVE-2024-21890CVE-2024-21891CVE-2024-21892 AlmaLinux Updated 29 October 2026
  • ALSA-2024:1688

    Important: nodejs:20 security update

    CVE-2023-46809CVE-2024-21890CVE-2024-21891CVE-2024-21892 AlmaLinux Updated 29 October 2026
  • AZL-35053

    CVE-2024-21896 affecting package nodejs for versions less than 20.14.0-1

    CVE-2024-21896 Azure Linux Updated 21 April 2026
  • CGA-6mgc-mxpr-48mw
    CVE-2024-21896 Chainguard Updated 5 November 2026
  • CGA-r4jr-c2r3-8qgh
    CVE-2024-21896 Chainguard Updated 5 November 2026
  • CNA-CVE-2024-21896

    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…

    CVE-2024-21896 Node.js Updated 30 April 2025
  • ELSA-2024-1687

    ELSA-2024-1687: nodejs:20 security update (IMPORTANT)

    Important CVE-2023-46809CVE-2024-21890CVE-2024-21891CVE-2024-21892 Oracle Linux Updated 8 April 2024
  • ELSA-2024-1688

    ELSA-2024-1688: nodejs:20 security update (IMPORTANT)

    Important CVE-2023-46809CVE-2024-21890CVE-2024-21891CVE-2024-21892 Oracle Linux Updated 8 April 2024
  • RHSA-2024:1687

    Red Hat Security Advisory: nodejs:20 security update

    CVE-2023-46809CVE-2024-21890CVE-2024-21891CVE-2024-21892 Red Hat Updated 24 November 2026
  • RHSA-2024:1688

    Red Hat Security Advisory: nodejs:20 security update

    CVE-2023-46809CVE-2024-21890CVE-2024-21891CVE-2024-21892 Red Hat Updated 24 November 2026
  • RLSA-2024:1687

    Important: nodejs:20 security update

    CVE-2023-46809CVE-2024-21890CVE-2024-21891CVE-2024-21892 Rocky Linux Updated 4 February 2026
  • RLSA-2024:1688

    Important: nodejs:20 security update

    CVE-2023-46809CVE-2024-21890CVE-2024-21891CVE-2024-21892 Rocky Linux Updated 9 October 2025
  • SUSE-SU-2024:0643-1

    Security update for nodejs20

    CVE-2023-46809CVE-2024-21890CVE-2024-21891CVE-2024-21892 SUSEopenSUSE Updated 4 February 2026
  • UBUNTU-CVE-2024-21896

    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…

    CVE-2024-21896 Ubuntu Updated 7 April 2026
  • openSUSE-SU-2024:13697-1

    corepack20-20.11.1-1.1 on GA media

    CVE-2023-46809CVE-2024-21890CVE-2024-21891CVE-2024-21892 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:13698-1

    corepack21-21.6.2-1.1 on GA media

    CVE-2023-46809CVE-2024-21890CVE-2024-21891CVE-2024-21892 openSUSE Updated 4 February 2026

References