CVEfocus › CVE database › CVE-2023-39332

CVE-2023-39332

EPSS 1.9% (higher than 80% of CVEs)Published 2023-10-18Updated 2025-11-03Assigner: hackerone

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.

What to do

Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

25Fixed
9Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04nodejsNot affected
vulnerable_code_not_present
Red Hat Enterprise Linux 9nodejsNot affected
Red Hat Enterprise Linux 9nodejs-docsNot affected
Red Hat Enterprise Linux 9nodejs-full-i18nNot affected
Red Hat Enterprise Linux 9nodejs-libsNot affected
Red Hat Enterprise Linux 9npmNot affected
Red Hat Enterprise Linux 8nodejsFixed1:20.8.1-1.module+el8.9.0+20473+c4e3d824RHSA-2023:7205
Red Hat Enterprise Linux 8nodejs-develFixed1:20.8.1-1.module+el8.9.0+20473+c4e3d824RHSA-2023:7205
Red Hat Enterprise Linux 8nodejs-docsFixed1:20.8.1-1.module+el8.9.0+20473+c4e3d824RHSA-2023:7205
Red Hat Enterprise Linux 8nodejs-full-i18nFixed1:20.8.1-1.module+el8.9.0+20473+c4e3d824RHSA-2023:7205
Red Hat Enterprise Linux 8nodejs-libsNot affected
Red Hat Enterprise Linux 8nodejs-nodemonFixed0:3.0.1-1.module+el8.9.0+20473+c4e3d824RHSA-2023:7205
Red Hat Enterprise Linux 8nodejs-packagingFixed0:2021.06-4.module+el8.9.0+19519+e25b965aRHSA-2023:7205
Red Hat Enterprise Linux 8nodejs-packaging-bundlerFixed0:2021.06-4.module+el8.9.0+19519+e25b965aRHSA-2023:7205
Red Hat Enterprise Linux 8npmFixed1:10.1.0-1.20.8.1.1.module+el8.9.0+20473+c4e3d824RHSA-2023:7205
Red Hat Enterprise Linux 8v8-12.4-develNot affected
Red Hat Enterprise Linux 8v8-13.6-develNot affected
AlmaLinux 8nodejsFixed1:20.8.1-1.module_el8.9.0+3675+0258a6d9ALSA-2023:7205
AlmaLinux 8nodejs-develFixed1:20.8.1-1.module_el8.9.0+3675+0258a6d9ALSA-2023:7205
AlmaLinux 8nodejs-docsFixed1:20.8.1-1.module_el8.9.0+3675+0258a6d9ALSA-2023:7205
AlmaLinux 8nodejs-full-i18nFixed1:20.8.1-1.module_el8.9.0+3675+0258a6d9ALSA-2023:7205
AlmaLinux 8nodejs-nodemonFixed3.0.1-1.module_el8.9.0+3675+0258a6d9ALSA-2023:7205
AlmaLinux 8nodejs-packagingFixed2021.06-4.module_el8.9.0+3684+11b9e959ALSA-2023:7205
AlmaLinux 8nodejs-packaging-bundlerFixed2021.06-4.module_el8.9.0+3684+11b9e959ALSA-2023:7205
AlmaLinux 8npmFixed1:10.1.0-1.20.8.1.1.module_el8.9.0+3675+0258a6d9ALSA-2023:7205
Rocky Linux 8nodejs-nodemonFixed0:3.0.1-1.module+el8.8.0+1459+02651ab6RLSA-2023:7205
Rocky Linux 8nodejs-packagingFixed0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2023:7205
Alpine Linux 3.24nodejs-currentFixed20.8.1-r0ALPINE-CVE-2023-39332
Alpine Linux 3.23nodejs-currentFixed20.8.1-r0ALPINE-CVE-2023-39332
Alpine Linux 3.22nodejs-currentFixed20.8.1-r0ALPINE-CVE-2023-39332
Alpine Linux 3.21nodejs-currentFixed20.8.1-r0ALPINE-CVE-2023-39332
Alpine Linux 3.20nodejs-currentFixed20.8.1-r0ALPINE-CVE-2023-39332
Alpine Linux 3.19nodejs-currentFixed20.8.1-r0ALPINE-CVE-2023-39332
Alpine Linux 3.18nodejs-currentFixed20.8.1-r0ALPINE-CVE-2023-39332

What the vendor says

As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.