CVE-2023-39332
Reported by hackerone · Published October 18, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nodejs-current | Alpine | 20.8.1-r0 |
| node | Bitnami | 20.8.0 |
| node-min | Bitnami | 20.8.0 |
| nodejs-20 | Chainguard | 20.8.0-r0 |
| nodejs-20 | Wolfi | 20.8.0-r0 |
| node | dhi.docker.com | 20.8.1 |
| alpine/nodejs-25 | alpine | 20.8.1 |
| alpine/nodejs-22 | alpine | 20.8.1 |
| alpine/nodejs-24 | alpine | 20.8.1 |
| alpine/nodejs-20 | alpine | 20.8.1 |
| node.js | nodejs | 20.8.0 |
| node | Bitnami | 20.8.0 |
3 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| NodeJS | Node | 4.0, 5.0, 6.0 |
| chainguard | nodejs-18 | * |
| chainguard | nodejs-16 | * |
| wolfi | nodejs-19 | * |
| wolfi | nodejs-18 | * |
| alpine | nodejs-current | 0 |
| NodeJS | Node | 14.0, 16.0, 17.0 |
| wolfi | nodejs-16 | * |
| chainguard | nodejs-19 | * |
| chainguard | nodejs-20 | 0 |
| wolfi | nodejs-20 | 0 |
Timeline
- Oct 13, 2023 PoC Published (2 in total, the first dated here)
- Oct 18, 2023 EPSS Score (30 in total, the first dated here)
- Oct 18, 2023 CVE Published
- Jun 2, 2026 Security Advisory (10 in total, the first dated here)
- Aug 5, 2026 Coalition ESS Score
- Nov 21, 2026 Distribution Patch (8 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-39332
vulnetix vdb fixes CVE-2023-39332
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-39332/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart