CVE-2023-39332
JSON

9.8critical

Various node:fs functions allow specifying paths as either strings or Uint8Array objects.

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
2.19% (higher than 82% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
hackerone
Also known as
BIT-NODE-2023-39332BIT-NODE-MIN-2023-39332

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.

Affected

Product or packageVersionsReported by
NodeJS Nodefrom 4.0 before 4.*, from 5.0 before 5.*, from 6.0 before 6.*, from 7.0 before 7.*, from 8.0 before 8.*, from 9.0 before 9.*, from 10.0 before 10.*, from 11.0 before 11.* and 8 moreCVE List
nodejs node.jsfrom 20.0.0 before 20.8.0NVD
fedoraproject fedora39NVD
node (Bitnami)from 20.0.0 before 20.8.0Bitnami Vulnerability Database
node-min (Bitnami)from 20.0.0 before 20.8.0Bitnami Vulnerability Database

All scores

NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasecritical rating

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

Varias funciones `node:fs` permiten especificar rutas como cadenas u objetos `Uint8Array`. En entornos Node.js, la clase `Buffer` extiende la clase `Uint8Array`. Node.js evita el path traversal a través de cadenas (ver CVE-2023-30584) y objetos `Buffer` (ver CVE-2023-32004), pero no a través de objetos `Uint8Array` que no son `Buffer`. Esto es distinto de CVE-2023-32004, que solo se refería a objetos "Buffer". Sin embargo, la vulnerabilidad sigue el mismo patrón al usar "Uint8Array" en lugar de "Buffer". Tenga en cuenta que en el momento en que se emitió este CVE, el modelo de permiso es una característica experimental de Node.js.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-39332 changed 2025-11-03CVE Terms of Use
NVDCVE-2023-39332 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-NODE-2023-39332 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-NODE-MIN-2023-39332 changed 2026-09-08Apache-2.0