CVE-2023-32003
nodejs: fs.mkdtemp() and fs.mkdtempSync() are missing getValidatedPath() checks
Overview
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.
Source: OX vulnerability database
Severity
5.3 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness: CWE-22
Affected packages · 2
Operating systems · 5 fixes
chainguard 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| nodejs-16 +1 | not affected | |
| nodejs-20 | 20.5.1-r0 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | corepack20 +4 | 20.5.1-1.1 | openSUSE-SU-2024:13117-1 |
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| nodejs-16 +1 | not affected | |
| nodejs-20 | 20.5.1-r0 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-32003
- hackerone.com https://hackerone.com/reports/2037887
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JQPELKG2LVTADSB7ME73AV4DXQK47PWK/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PBOZE2QZIBLFFTYWYN23FGKN6HULZ6HX/
- nodejs.org https://nodejs.org/en/blog/vulnerability/august-2023-security-releases#fsmkdtemp-and-fsmkdtempsync-are-missing-getvalidatedpath-checks-lowcve-2023-32003
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-32003
- security.netapp.com https://security.netapp.com/advisory/ntap-20230915-0009/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-32003
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.