CVE Program
CNA-CVE-2023-32003
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Node.js | node | From 4.0 before 5 From 5.0 before 6 From 6.0 before 7 From 7.0 before 8 From 8.0 before 9 From 9.0 before 10 From 10.0 before 11 From 11.0 before 12 From 12.0 before 13 From 13.0 before 14 From 14.0 before 15 From 15.0 before 16 From 17.0 before 18 From 19.0 before 20 From 20.0 before 20.5.1 (fixed in 20.5.1) |
References
- https://www.cve.org/CVERecord?id=CVE-2023-32003
- https://hackerone.com/reports/2037887
- https://lists.fedoraproject.org/archives/list/[email protected]/message/PBOZE2QZIBLFFTYWYN23FGKN6HULZ6HX/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/JQPELKG2LVTADSB7ME73AV4DXQK47PWK/
- https://security.netapp.com/advisory/ntap-20230915-0009/