nodejs: fs.mkdtemp() and fs.mkdtempSync() are missing getValidatedPath() checks
Published Aug 15, 2023
5.3
MEDIUMCVSS 3.1
EPSS 1.17%
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.
Affected products
-
- Version 10.0StatusaffectedConstraints<10.*
- Version 11.0StatusaffectedConstraints<11.*
- Version 12.0StatusaffectedConstraints<12.*
- Version 13.0StatusaffectedConstraints<13.*
- Version 14.0StatusaffectedConstraints<14.*
- Version 15.0StatusaffectedConstraints<15.*
- Version 17.0StatusaffectedConstraints<17.*
- Version 19.0StatusaffectedConstraints<19.*
- Version 20.0StatusaffectedConstraints<20.5.1
- Version 4.0StatusaffectedConstraints<4.*
- Version 5.0StatusaffectedConstraints<5.*
- Version 6.0StatusaffectedConstraints<6.*
- Version 7.0StatusaffectedConstraints<7.*
- Version 8.0StatusaffectedConstraints<8.*
- Version 9.0StatusaffectedConstraints<9.*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Node.js | Node | unaffected |
|
Configuration 2
- 37
- 38
No data.
Red Hat Enterprise Linux 8
nodejs:16/nodejs
Not affected
Red Hat Enterprise Linux 8
nodejs:18/nodejs
Not affected
Red Hat Enterprise Linux 9
nodejs
Not affected
Red Hat Enterprise Linux 9
nodejs:18/nodejs
Not affected
Red Hat Software Collections
rh-nodejs14-nodejs
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | nodejs:16/nodejs | Not affected | n/a |
| Red Hat Enterprise Linux 8 | nodejs:18/nodejs | Not affected | n/a |
| Red Hat Enterprise Linux 9 | nodejs | Not affected | n/a |
| Red Hat Enterprise Linux 9 | nodejs:18/nodejs | Not affected | n/a |
| Red Hat Software Collections | rh-nodejs14-nodejs | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
For this CVE no Red Hat Products are affected as this CVE only affects Node.js version 20, specifically within the experimental permission model feature of Node.js 20, that we are not shipped.
Red Hat mitigation
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
YesTechnical Impact
PartialDecision
n/aAssessed Oct 9, 2024 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2023–2026- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.17% (0.01170) | 66.26th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.05% (0.01048) | 59.63th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.59% (0.00591) | 67.36th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.07% (0.00072) | 33.39th | v3 (v2023.03.01) |
| Jul 15, 2024 | 0.06% (0.00061) | 26.42th | v3 (v2023.03.01) |
| Jun 20, 2024 | 0.05% (0.00053) | 21.07th | v3 (v2023.03.01) |
| Oct 28, 2023 | 0.05% (0.00053) | 19.07th | v3 (v2023.03.01) |
| Sep 22, 2023 | 0.07% (0.00075) | 31.05th | v3 (v2023.03.01) |
| Sep 16, 2023 | 0.05% (0.00053) | 19.05th | v3 (v2023.03.01) |
| Aug 22, 2023 | 0.06% (0.00059) | 23.09th | v3 (v2023.03.01) |
| Aug 19, 2023 | 0.04% (0.00045) | 12.55th | v3 (v2023.03.01) |
| Aug 16, 2023 | 0.04% (0.00043) | 6.99th | v3 (v2023.03.01) |
References (9)
- https://access.redhat.com/security/cve/CVE-2023-32003 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2230959 Issue Tracking
- https://hackerone.com/reports/2037887 Issue Tracking
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JQPELKG2LVTADSB7ME73AV4DXQK47PWK/ Mailing ListThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PBOZE2QZIBLFFTYWYN23FGKN6HULZ6HX/ Mailing ListThird Party Advisory
- https://nodejs.org/en/blog/vulnerability/august-2023-security-releases#fsmkdtemp-and-fsmkdtempsync-are-missing-getvalidatedpath-checks-lowcve-2023-32003
- https://nvd.nist.gov/vuln/detail/CVE-2023-32003
- https://security.netapp.com/advisory/ntap-20230915-0009/ Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2023-32003
Change history (0)
No recorded changes yet.