CVE-2023-39332
nodejs: path traversal through path stored in Uint8Array
Overview
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.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-22
Affected packages · 2
Operating systems · 24 fixes
Oracle Linux 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | npm | 1:10.1.0-1.20.8.1.1.module+el8.9.0+90082+b6a613a6 |
| 8 | nodejs +3 | 1:20.8.1-1.module+el8.9.0+90082+b6a613a6 |
| 8 | nodejs-packaging +1 | 2021.06-4.module+el8.9.0+90082+b6a613a6 |
| 8 | nodejs-nodemon | 3.0.1-1.module+el8.9.0+90082+b6a613a6 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | nodejs +1 | 18.18.2-1.ph5 |
Red Hat 1 release · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 8 (nodejs:20) | nodejs-packaging +1 | 0:2021.06-4.module+el8.9.0+19519+e25b965a | RHSA-2023:7205 |
| 8 (nodejs:20) | nodejs-nodemon | 0:3.0.1-1.module+el8.9.0+20473+c4e3d824 | RHSA-2023:7205 |
| 8 (nodejs:20) | npm | 1:10.1.0-1.20.8.1.1.module+el8.9.0+20473+c4e3d824 | RHSA-2023:7205 |
| 8 (nodejs:20) | nodejs +3 | 1:20.8.1-1.module+el8.9.0+20473+c4e3d824 | RHSA-2023:7205 |
alma 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:20) | npm | 1:10.1.0-1.20.8.1.1.module_el8.9.0+3675+0258a6d9 |
| 8 (nodejs:20) | nodejs +3 | 1:20.8.1-1.module_el8.9.0+3675+0258a6d9 |
| 8 (nodejs:20) | nodejs-packaging +1 | 2021.06-4.module_el8.9.0+3684+11b9e959 |
| 8 (nodejs:20) | nodejs-nodemon | 3.0.1-1.module_el8.9.0+3675+0258a6d9 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | nodejs-current | 20.8.1-r0 |
| 3.23 | nodejs-current | 20.8.1-r0 |
| 3.24 | nodejs-current | 20.8.1-r0 |
| edge | nodejs-current | 20.8.1-r0 |
chainguard 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| nodejs-16 +1 | not affected | |
| nodejs-20 | 20.8.0-r0 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | corepack20 +4 | 20.8.1-1.1 | openSUSE-SU-2024:13337-1 |
rocky 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:18) | nodejs-packaging +1 | 2021.06-4.module+el8.7.0+1072+5b168780 |
| 8 (nodejs:18) | nodejs-nodemon | 3.0.1-1.module+el8.8.0+1459+02651ab6 |
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| nodejs-16 +1 | not affected | |
| nodejs-20 | 20.8.0-r0 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:7205
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-39332
- bugzilla.redhat.com https://bugzilla.redhat.com/2242803
- bugzilla.redhat.com https://bugzilla.redhat.com/2244104
- bugzilla.redhat.com https://bugzilla.redhat.com/2244413
- bugzilla.redhat.com https://bugzilla.redhat.com/2244414
- bugzilla.redhat.com https://bugzilla.redhat.com/2244415
- bugzilla.redhat.com https://bugzilla.redhat.com/2244418
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2242803
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2244104
Show all 31 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2244413
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2244414
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2244415
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2244418
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-38552
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-39331
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-39332
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-39333
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-44487
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-45143
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2023-7205.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2023:7205
- hackerone.com https://hackerone.com/reports/2199818
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-39332.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2023-7205.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3N4NJ7FR4X4FPZUGNTQAPSTVB2HB2Y4A/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-39332
- security.netapp.com https://security.netapp.com/advisory/ntap-20231116-0009/
- security.netapp.com https://security.netapp.com/advisory/ntap-20241108-0002/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-39332
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.