CVE-2023-39332 Various node:fs functions allow specifying paths as either strings or Uint8Array objects. In Node.js environments, the Buffer class extends the Uint8Array class. Node.js prevents path traversal throug...
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
- Technology
- Debian
Description
Various node:fs functions allow specifying paths as either strings or Uint8Array objects. In Node.js environments, the Buffer class extends the Uint8Array class. Node.js prevents path traversal through strings (see CVE-2023-30584) and Buffer objects (see CVE-2023-32004), but not through non-Buffer Uint8Array objects.
This is distinct from CVE-2023-32004 which only referred to Buffer objects. However, the vulnerability follows the same pattern using Uint8Array instead of Buffer.
Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.
Upgrade path
10 packages: 8 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| nodejs node | >= 4.0; >= 5.0; >= 6.0; >= 7.0 +12 more | 20.8.1 | Partially fixed |
| alpine/nodejs-current(Alpine v3.18) | < 20.8.1-r0 | 20.8.1-r0 | Fixed |
| alpine/nodejs-current(Alpine v3.19) | < 20.8.1-r0 | 20.8.1-r0 | Fixed |
| alpine/nodejs-current(Alpine v3.20) | < 20.8.1-r0 | 20.8.1-r0 | Fixed |
| alpine/nodejs-current(Alpine v3.21) | < 20.8.1-r0 | 20.8.1-r0 | Fixed |
| alpine/nodejs-current(Alpine v3.22) | < 20.8.1-r0 | 20.8.1-r0 | Fixed |
| alpine/nodejs-current(Alpine v3.23) | < 20.8.1-r0 | 20.8.1-r0 | Fixed |
| alpine/nodejs-current(Alpine v3.24) | < 20.8.1-r0 | 20.8.1-r0 | Fixed |
| nodejs node.js | >= 20.0.0, < 20.8.0 | 20.8.0 | Fixed |
| fedoraproject fedora | = 39 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nodejs node | >= 4.0 | No fix listed |
| nodejs node | >= 5.0 | No fix listed |
| nodejs node | >= 6.0 | No fix listed |
| nodejs node | >= 7.0 | No fix listed |
| nodejs node | >= 8.0 | No fix listed |
| nodejs node | >= 9.0 | No fix listed |
| nodejs node | >= 10.0 | No fix listed |
| nodejs node | >= 11.0 | No fix listed |
| nodejs node | >= 12.0 | No fix listed |
| nodejs node | >= 13.0 | No fix listed |
| nodejs node | >= 14.0 | No fix listed |
| nodejs node | >= 15.0 | No fix listed |
| nodejs node | >= 16.0 | No fix listed |
| nodejs node | >= 17.0 | No fix listed |
| nodejs node | >= 19.0 | No fix listed |
| nodejs node | >= 20.0, < 20.8.1 | 20.8.1 |
| alpine/nodejs-current(Alpine:v3.18) | < 20.8.1-r0 | 20.8.1-r0 |
| alpine/nodejs-current(Alpine:v3.19) | < 20.8.1-r0 | 20.8.1-r0 |
| alpine/nodejs-current(Alpine:v3.20) | < 20.8.1-r0 | 20.8.1-r0 |
| alpine/nodejs-current(Alpine:v3.21) | < 20.8.1-r0 | 20.8.1-r0 |
| alpine/nodejs-current(Alpine:v3.22) | < 20.8.1-r0 | 20.8.1-r0 |
| alpine/nodejs-current(Alpine:v3.23) | < 20.8.1-r0 | 20.8.1-r0 |
| alpine/nodejs-current(Alpine:v3.24) | < 20.8.1-r0 | 20.8.1-r0 |
| nodejs node.js | >= 20.0.0, < 20.8.0 | 20.8.0 |
| fedoraproject fedora | = 39 | No fix listed |
References
- hackerone.com third-party-advisory
- lists.fedoraproject.org mailing-list
- security.netapp.com third-party-advisory
- security.netapp.com
- security.alpinelinux.org vendor-advisory
- Debian Security Tracker CVE-2023-39332 vendor-advisory