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 package | Versions | Reported by |
|---|---|---|
| NodeJS Node | from 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 more | CVE List |
| nodejs node.js | from 20.0.0 before 20.8.0 | NVD |
| fedoraproject fedora | 39 | NVD |
| node (Bitnami) | from 20.0.0 before 20.8.0 | Bitnami Vulnerability Database |
| node-min (Bitnami) | from 20.0.0 before 20.8.0 | Bitnami Vulnerability Database |
All scores
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
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
| https://hackerone.com/reports/2199818 | advisory, third-party-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3N4NJ7FR4X4FPZUGNTQAPSTVB2HB2Y4A/ | discussion, mailing-list | |
| https://security.netapp.com/advisory/ntap-20231116-0009/ | advisory, third-party-advisory | |
| https://security.netapp.com/advisory/ntap-20241108-0002/ | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-39332 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-39332 changed 2025-11-03 | CVE Terms of Use |
| NVD | CVE-2023-39332 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-NODE-2023-39332 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-NODE-MIN-2023-39332 changed 2026-09-08 | Apache-2.0 |