Back to CVE catalog
CVE-2023-32003

Permission model bypass via fs.mkdtemp()

NodeJS Node

At a glance

`fs.mkdtemp()` and `fs.mkdtempSync()` can be used to bypass the permission model check using a path traversal attack. This flaw arises from a missing check in the fs.mkdtemp() API and the impact is a malicious actor could create an arbitrary directory. This vulnerability affects all users using the experimental permission model in Node.js 20. Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityNone
IntegrityLow
AvailabilityNone

CVSS summary v3.1

5.3Medium
Published:
Updated:
EPSS:
1.17%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:NodeJSNodeAffected versions:
≥ 4.0, < 4.*Show full version range for Node
≥ 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.*≥ 17.0, < 17.*≥ 19.0, < 19.*≥ 20.0, < 20.5.1
Vendor:SUSEopenSUSE TumbleweedAffected versions:Source does not specify a version range
Vendor:nodejsnode.jsAffected versions:
≥ 20.0.0, ≤ 20.5.0Show full version range for node.js
  • CPE applicability can depend on other products or environments. Consult the full source configuration.
Vendor:FedorafedoraAffected versions:
37Show full version range for fedora
38
  • CPE applicability can depend on other products or environments. Consult the full source configuration.

1–4 of 4 · Page 1 of 1

CVSS scores and metrics6
[email protected] · NVD (Primary)Primary5.3 / 10MediumCVSS 3.1Details
Attack complexity
Low
Confidentiality
None
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CISA-ADP · CVE List / CNA (adp)5.3 / 10MediumCVSS 3.1Details
Attack complexity
Low
Confidentiality
None
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
134c704f-9b21-4f2e-91b3-4a467353bcc0 · NVD (Secondary)5.3 / 10MediumCVSS 3.1Details
Attack complexity
Low
Confidentiality
None
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVE-2023-32003 · OSV (source-vector)5.3 / 10MediumCVSS 3.1Details
Attack complexity
Low
Confidentiality
None
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Red Hat · Red Hat VEX (adp)5.3 / 10MediumCVSS 3.1Details
Attack complexity
Low
Confidentiality
None
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
SUSE · SUSE VEX (adp)6.5 / 10MediumCVSS 3.1Details
Attack complexity
High
Confidentiality
None
Integrity
High
Availability
Low
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories11

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences