CVE-2023-32003
published medium CVSS 3.1 · 5.3nodejs: fs.mkdtemp() and fs.mkdtempSync() are missing getValidatedPath() checks
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.* · 17.0 to < 17.* · 19.0 to < 19.* · 20.0 to < 20.5.1 · Other versions: unaffected | Affected | Not stated | hackerone |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | corepack20aarch64 | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | corepack20ppc64le | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | corepack20s390x | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | corepack20x86_64 | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nodejs20aarch64 | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nodejs20ppc64le | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
Show 14 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | nodejs20s390x | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nodejs20x86_64 | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nodejs20-develaarch64 | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nodejs20-develppc64le | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nodejs20-devels390x | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nodejs20-develx86_64 | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nodejs20-docsaarch64 | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nodejs20-docsppc64le | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nodejs20-docss390x | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | nodejs20-docsx86_64 | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | npm20aarch64 | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | npm20ppc64le | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | npm20s390x | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | npm20x86_64 | Advisory build | 20.5.1-1.1 | OPENSUSE-SU-2024:13117-1 |
Description
`fs.mkdtemp()` and `fs.mkdtempSync()` can be used to bypass the permission model check using a path traversal attack. This flaw arises from a missing check in the fs.mkdtemp() API and the impact is a malicious actor could create an arbitrary directory. This vulnerability affects all users using the experimental permission model in Node.js 20. 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.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
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)17.0 to < 17.* (affected · semver)19.0 to < 19.* (affected · semver)20.0 to < 20.5.1 (affected · semver)Default: unaffected | hackerone · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
4- https://hackerone.com/reports/2037887
- https://lists.fedoraproject.org/archives/list/[email protected]/message/JQPELKG2LVTADSB7ME73AV4DXQK47PWK/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/PBOZE2QZIBLFFTYWYN23FGKN6HULZ6HX/
- https://security.netapp.com/advisory/ntap-20230915-0009/
Provider assertions
3hackerone · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 675b0dc6bfe6d3f2ebda1dd806fea4c3ca96227763afeed450b473f1493baa7c
- Ingested
- 23 Sep 2026, 08:08:48 UTC
- Source record
- Official CVE record