VDB

CVE-2023-39332

CVE-2023-39332 PUBLISHED

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.

PackageEcosystemFixed in
nodejs-currentAlpine20.8.1-r0
nodeBitnami20.8.0
node-minBitnami20.8.0
nodejs-20Chainguard20.8.0-r0
nodejs-20Wolfi20.8.0-r0
nodedhi.docker.com20.8.1
alpine/nodejs-25alpine20.8.1
alpine/nodejs-22alpine20.8.1
alpine/nodejs-24alpine20.8.1
alpine/nodejs-20alpine20.8.1
node.jsnodejs20.8.0
nodeBitnami20.8.0

3 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
NodeJSNode4.0, 5.0, 6.0
chainguardnodejs-18*
chainguardnodejs-16*
wolfinodejs-19*
wolfinodejs-18*
alpinenodejs-current0
NodeJSNode14.0, 16.0, 17.0
wolfinodejs-16*
chainguardnodejs-19*
chainguardnodejs-200
wolfinodejs-200

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›