{"schemaVersion":3,"id":"CVE-2023-39332","aliases":["CGA-6f4p-jvx2-cfwc","CGA-gxcf-jx3j-chf9","CGA-hjcx-hgqf-9hp3","CGA-hxv9-cq37-36w3","CGA-phcm-cj6c-r5hj","CGA-rh7v-h9mg-qxjj"],"status":"published","duplicateOf":null,"title":null,"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.\n\nThis is distinct from CVE-2023-32004 which only referred to `Buffer` objects. However, the vulnerability follows the same pattern using `Uint8Array` instead of `Buffer`.\n\nPlease note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.","dates":{"published":"2023-10-18T03:55:18.469Z","modified":"2025-11-03T21:49:17.572Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02185,"percentile":0.82138,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.366,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01819},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02185,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02185,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02185,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02185,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02185,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02185,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02185,"percentile":0.82138}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01819,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02185,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02185,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02185,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02185,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02185,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02185,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02185,"percentile":0.82138}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"chainguard","product":"nodejs-16","name":"nodejs-16","label":"nodejs-16","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/nodejs-16","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"nodejs-18","name":"nodejs-18","label":"nodejs-18","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/nodejs-18","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"nodejs-20","name":"nodejs-20","label":"nodejs-20","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/nodejs-20","purlType":"apk","versions":[{"text":"< 20.8.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 20.8.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"nodejs-16","name":"nodejs-16","label":"nodejs-16","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/nodejs-16","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"nodejs-18","name":"nodejs-18","label":"nodejs-18","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/nodejs-18","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"nodejs-20","name":"nodejs-20","label":"nodejs-20","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/nodejs-20","purlType":"apk","versions":[{"text":"< 20.8.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 20.8.0-r0","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"39","noFixRecorded":false,"fixedIn":null}],"versionsText":"39","eol":{"isEol":true,"eolDate":"2024-11-26T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"39","label":"39","eolFrom":"2024-11-26T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"nodejs","product":"node","name":"Node","label":"node","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0, < 4.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0, < 5.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0, < 6.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 7.0, < 7.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.0, < 8.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 9.0, < 9.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.0, < 10.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 11.0, < 11.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 12.0, < 12.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 13.0, < 13.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 14.0, < 14.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 15.0, < 15.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 16.0, < 16.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 17.0, < 17.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 19.0, < 19.*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 20.0, < 20.8.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0, < 4.* | ≥ 5.0, < 5.* | ≥ 6.0, < 6.* | ≥ 7.0, < 7.* | ≥ 8.0, < 8.* | ≥ 9.0, < 9.* | ≥ 10.0, < 10.* | ≥ 11.0, < 11.* | ≥ 12.0, < 12.* | ≥ 13.0, < 13.* | ≥ 14.0, < 14.* | ≥ 15.0, < 15.* | ≥ 16.0, < 16.* | ≥ 17.0, < 17.* | ≥ 19.0, < 19.* | ≥ 20.0, < 20.8.1","eol":null,"hubHref":"/vendor/nodejs/node"},{"vendor":"nodejs","product":"node.js","name":"node.js","label":"node.js","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 20.0.0, < 20.8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 20.0.0, < 20.8.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"nodejs","label":"Node.js","category":"framework"}},"hubHref":"/vendor/nodejs/nodejs"}],"affectedCount":9,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://hackerone.com/reports/2199818","label":"hackerone.com/reports/2199818","hostname":"hackerone.com","tags":["Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3N4NJ7FR4X4FPZUGNTQAPSTVB2HB2Y4A/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Mailing List"]},{"url":"https://security.netapp.com/advisory/ntap-20231116-0009/","label":"security.netapp.com/advisory/ntap-20231116-0009/","hostname":"security.netapp.com","tags":["Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20241108-0002/","label":"security.netapp.com/advisory/ntap-20241108-0002/","hostname":"security.netapp.com","tags":[]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:13337-1","RHSA-2023:7205"],"duplicates":[],"related":["CGA-43CX-MVC6-XXX4","CGA-4XRC-HQGQ-6QW2","CGA-6R5C-29M7-93F9","CGA-7CQX-PG64-HJ79","CGA-G752-CFQW-PFQH","OPENSUSE-SU-2024:13337-1"]},"timeline":[{"kind":"published","date":"2023-10-18T03:55:18.469Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-03T21:49:17.572Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T06:57:10.727Z","stale":false,"partial":false}}