CVE-2024-21896
published high CVSS 3.0 · 7.9nodejs: path traversal by monkey-patching buffer internals
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| NodeJS | — | Node4.0 to < 4.* · 5.0 to < 5.* · 6.0 to < 6.* · 7.0 to < 7.* · 8.0 to < 8.* · 9.0 to < 9.* · 10.0 to < 10.* · 11.0 to < 11.* · 12.0 to < 12.* · 13.0 to < 13.* · 14.0 to < 14.* · 15.0 to < 15.* · 16.0 to < 16.* · 17.0 to < 17.* · 19.0 to < 19.* · 20.0 to < 20.11.1 · 21.0 to < 21.6.2 · Other versions: unaffected | Affected | Not stated | hackerone |
| nodejs | — | nodejs21.6.1 (affected) · 20.11.0 (unaffected) · Other versions: unknown | Version-specific | Not stated | CISA-ADP |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-544 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | nodejs | Advisory build | 1:20.11.1-1.module_el8.9.0+3775+d8460d35 | ALSA-2024:1687 |
| Oracle Linux | 8 | nodejsaarch64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el8.9.0+90250+089ba5e1 | ELSA-2024-1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejsaarch64 | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| AlmaLinux | 9 | nodejs | Advisory build | 1:20.11.1-1.module_el9.3.0+88+29afeaa2 | ALSA-2024:1688 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 8 | nodejsx86_64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el8.9.0+90250+089ba5e1 | ELSA-2024-1687 |
| Oracle Linux | 9 | nodejsaarch64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el9.3.0+90254+3f4d3ee1 | ELSA-2024-1688 |
| Oracle Linux | 9 | nodejsx86_64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el9.3.0+90254+3f4d3ee1 | ELSA-2024-1688 |
| Red Hat Enterprise Linux | RHEL-8 | nodejsppc64le | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejss390x | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejssrc | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejsx86_64 | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-9 | nodejsaarch64 | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejsppc64le | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejss390x | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejssrc | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejsx86_64 | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| AlmaLinux | 8 | nodejs-devel | Advisory build | 1:20.11.1-1.module_el8.9.0+3775+d8460d35 | ALSA-2024:1687 |
| AlmaLinux | 8 | nodejs-docs | Advisory build | 1:20.11.1-1.module_el8.9.0+3775+d8460d35 | ALSA-2024:1687 |
| AlmaLinux | 8 | nodejs-full-i18n | Advisory build | 1:20.11.1-1.module_el8.9.0+3775+d8460d35 | ALSA-2024:1687 |
| AlmaLinux | 8 | nodejs-nodemon | Advisory build | 3.0.1-1.module_el8.9.0+3731+490e3ce5 | ALSA-2024:1687 |
| AlmaLinux | 8 | nodejs-packaging | Advisory build | 2021.06-4.module_el8.9.0+3684+11b9e959 | ALSA-2024:1687 |
| AlmaLinux | 8 | nodejs-packaging-bundler | Advisory build | 2021.06-4.module_el8.9.0+3684+11b9e959 | ALSA-2024:1687 |
| AlmaLinux | 8 | npm | Advisory build | 1:10.2.4-1.20.11.1.1.module_el8.9.0+3775+d8460d35 | ALSA-2024:1687 |
| AlmaLinux | 9 | nodejs-devel | Advisory build | 1:20.11.1-1.module_el9.3.0+88+29afeaa2 | ALSA-2024:1688 |
| AlmaLinux | 9 | nodejs-docs | Advisory build | 1:20.11.1-1.module_el9.3.0+88+29afeaa2 | ALSA-2024:1688 |
| AlmaLinux | 9 | nodejs-full-i18n | Advisory build | 1:20.11.1-1.module_el9.3.0+88+29afeaa2 | ALSA-2024:1688 |
| AlmaLinux | 9 | nodejs-nodemon | Advisory build | 3.0.1-1.module_el9.3.0+47+c33bc288 | ALSA-2024:1688 |
| AlmaLinux | 9 | nodejs-packaging | Advisory build | 2021.06-4.module_el9.3.0+48+1cf146a1 | ALSA-2024:1688 |
| AlmaLinux | 9 | nodejs-packaging-bundler | Advisory build | 2021.06-4.module_el9.3.0+48+1cf146a1 | ALSA-2024:1688 |
| AlmaLinux | 9 | npm | Advisory build | 1:10.2.4-1.20.11.1.1.module_el9.3.0+88+29afeaa2 | ALSA-2024:1688 |
| Oracle Linux | 8 | nodejs-develaarch64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el8.9.0+90250+089ba5e1 | ELSA-2024-1687 |
| Oracle Linux | 8 | nodejs-develx86_64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el8.9.0+90250+089ba5e1 | ELSA-2024-1687 |
| Oracle Linux | 8 | nodejs-docsaarch64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el8.9.0+90250+089ba5e1 | ELSA-2024-1687 |
| Oracle Linux | 8 | nodejs-docsx86_64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el8.9.0+90250+089ba5e1 | ELSA-2024-1687 |
| Oracle Linux | 8 | nodejs-full-i18naarch64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el8.9.0+90250+089ba5e1 | ELSA-2024-1687 |
| Oracle Linux | 8 | nodejs-full-i18nx86_64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el8.9.0+90250+089ba5e1 | ELSA-2024-1687 |
| Oracle Linux | 8 | nodejs-nodemonaarch64 · nodejs · 20b | Advisory build | 0:3.0.1-1.module+el8.9.0+90082+b6a613a6 | ELSA-2024-1687 |
| Oracle Linux | 8 | nodejs-nodemonx86_64 · nodejs · 20b | Advisory build | 0:3.0.1-1.module+el8.9.0+90082+b6a613a6 | ELSA-2024-1687 |
| Oracle Linux | 8 | nodejs-packagingaarch64 · nodejs · 20b | Advisory build | 0:2021.06-4.module+el8.9.0+90082+b6a613a6 | ELSA-2024-1687 |
| Oracle Linux | 8 | nodejs-packagingx86_64 · nodejs · 20b | Advisory build | 0:2021.06-4.module+el8.9.0+90082+b6a613a6 | ELSA-2024-1687 |
| Oracle Linux | 8 | nodejs-packaging-bundleraarch64 · nodejs · 20b | Advisory build | 0:2021.06-4.module+el8.9.0+90082+b6a613a6 | ELSA-2024-1687 |
| Oracle Linux | 8 | nodejs-packaging-bundlerx86_64 · nodejs · 20b | Advisory build | 0:2021.06-4.module+el8.9.0+90082+b6a613a6 | ELSA-2024-1687 |
| Oracle Linux | 8 | npmaarch64 · nodejs · 20b | Advisory build | 1:10.2.4-1.20.11.1.1.module+el8.9.0+90250+089ba5e1 | ELSA-2024-1687 |
| Oracle Linux | 8 | npmx86_64 · nodejs · 20b | Advisory build | 1:10.2.4-1.20.11.1.1.module+el8.9.0+90250+089ba5e1 | ELSA-2024-1687 |
| Oracle Linux | 9 | nodejs-develaarch64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el9.3.0+90254+3f4d3ee1 | ELSA-2024-1688 |
| Oracle Linux | 9 | nodejs-develx86_64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el9.3.0+90254+3f4d3ee1 | ELSA-2024-1688 |
| Oracle Linux | 9 | nodejs-docsaarch64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el9.3.0+90254+3f4d3ee1 | ELSA-2024-1688 |
| Oracle Linux | 9 | nodejs-docsx86_64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el9.3.0+90254+3f4d3ee1 | ELSA-2024-1688 |
| Oracle Linux | 9 | nodejs-full-i18naarch64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el9.3.0+90254+3f4d3ee1 | ELSA-2024-1688 |
| Oracle Linux | 9 | nodejs-full-i18nx86_64 · nodejs · 20b | Advisory build | 1:20.11.1-1.module+el9.3.0+90254+3f4d3ee1 | ELSA-2024-1688 |
| Oracle Linux | 9 | nodejs-nodemonaarch64 · nodejs · 20b | Advisory build | 0:3.0.1-1.module+el9.3.0+90066+12d4a8d7 | ELSA-2024-1688 |
| Oracle Linux | 9 | nodejs-nodemonx86_64 · nodejs · 20b | Advisory build | 0:3.0.1-1.module+el9.3.0+90066+12d4a8d7 | ELSA-2024-1688 |
| Oracle Linux | 9 | nodejs-packagingaarch64 · nodejs · 20b | Advisory build | 0:2021.06-4.module+el9.3.0+90066+12d4a8d7 | ELSA-2024-1688 |
| Oracle Linux | 9 | nodejs-packagingx86_64 · nodejs · 20b | Advisory build | 0:2021.06-4.module+el9.3.0+90066+12d4a8d7 | ELSA-2024-1688 |
| Oracle Linux | 9 | nodejs-packaging-bundleraarch64 · nodejs · 20b | Advisory build | 0:2021.06-4.module+el9.3.0+90066+12d4a8d7 | ELSA-2024-1688 |
| Oracle Linux | 9 | nodejs-packaging-bundlerx86_64 · nodejs · 20b | Advisory build | 0:2021.06-4.module+el9.3.0+90066+12d4a8d7 | ELSA-2024-1688 |
| Oracle Linux | 9 | npmaarch64 · nodejs · 20b | Advisory build | 1:10.2.4-1.20.11.1.1.module+el9.3.0+90254+3f4d3ee1 | ELSA-2024-1688 |
| Oracle Linux | 9 | npmx86_64 · nodejs · 20b | Advisory build | 1:10.2.4-1.20.11.1.1.module+el9.3.0+90254+3f4d3ee1 | ELSA-2024-1688 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debuginfoaarch64 | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debuginfoppc64le | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debuginfos390x | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debuginfox86_64 | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debugsourceaarch64 | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debugsourceppc64le | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debugsources390x | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-debugsourcex86_64 | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-develaarch64 | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-develppc64le | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-devels390x | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-develx86_64 | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-docsnoarch | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-full-i18naarch64 | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-full-i18nppc64le | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-full-i18ns390x | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-full-i18nx86_64 | Advisory build | 1:20.11.1-1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-nodemonnoarch | Advisory build | 3.0.1-1.module+el8.9.0+20473+c4e3d824 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-nodemonsrc | Advisory build | 3.0.1-1.module+el8.9.0+20473+c4e3d824 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-packagingnoarch | Advisory build | 2021.06-4.module+el8.9.0+19519+e25b965a | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-packagingsrc | Advisory build | 2021.06-4.module+el8.9.0+19519+e25b965a | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | nodejs-packaging-bundlernoarch | Advisory build | 2021.06-4.module+el8.9.0+19519+e25b965a | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | npmaarch64 | Advisory build | 1:10.2.4-1.20.11.1.1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | npmppc64le | Advisory build | 1:10.2.4-1.20.11.1.1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | npms390x | Advisory build | 1:10.2.4-1.20.11.1.1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-8 | npmx86_64 | Advisory build | 1:10.2.4-1.20.11.1.1.module+el8.9.0+21380+12032667 | RHSA-2024:1687 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-debuginfoaarch64 | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-debuginfoppc64le | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-debuginfos390x | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-debuginfox86_64 | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-debugsourceaarch64 | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-debugsourceppc64le | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-debugsources390x | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-debugsourcex86_64 | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-develaarch64 | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-develppc64le | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-devels390x | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-develx86_64 | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-docsnoarch | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-full-i18naarch64 | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-full-i18nppc64le | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
| Red Hat Enterprise Linux | RHEL-9 | nodejs-full-i18ns390x | Advisory build | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a | RHSA-2024:1688 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 7.9 / 10
- Severity
- high
- Provider
- hackerone · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| NodeJS | Node | 4.0 to < 4.* (affected · semver)5.0 to < 5.* (affected · semver)6.0 to < 6.* (affected · semver)7.0 to < 7.* (affected · semver)8.0 to < 8.* (affected · semver)9.0 to < 9.* (affected · semver)10.0 to < 10.* (affected · semver)11.0 to < 11.* (affected · semver)12.0 to < 12.* (affected · semver)13.0 to < 13.* (affected · semver)14.0 to < 14.* (affected · semver)15.0 to < 15.* (affected · semver)16.0 to < 16.* (affected · semver)17.0 to < 17.* (affected · semver)19.0 to < 19.* (affected · semver)20.0 to < 20.11.1 (affected · semver)21.0 to < 21.6.2 (affected · semver)Default: unaffected | hackerone · cna |
| nodejs | nodejs | 21.6.1 (affected)20.11.0 (unaffected)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-27 CWE-27 Path Traversal: 'dir/../../filename'
References
3Provider assertions
3hackerone · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 775e4431315f538bd6efca23fa0f6f701cbf26d2873556b84ccbedd76927aab2
- Ingested
- 23 Sep 2026, 08:19:02 UTC
- Source record
- Official CVE record