CVE-2023-32005: fs.statfs can retrieve stats from files restricted by the Permission Model
A vulnerability has been identified in Node.js version 20, affecting users of the experimental permission model when the --allow-fs-read flag is used with a non- argument.
Other sources
Node.js could allow a remote attacker to obtain sensitive information, caused by the failure to restrict file stats through the fs.statfs API in the permission model. By using the --allow-fs-read flag with a non- argument, an attacker could exploit this vulnerability to retrieve stats from files that they do not have explicit read access to.
— IBM
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 20.5.1
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the vulnerability ID?
The vulnerability ID is CVE-2023-32005.
Which version of Node.js is affected by this vulnerability?
Node.js version 20 is affected.
What is the severity level of CVE-2023-32005?
The severity level of CVE-2023-32005 is medium with a score of 5.3.
How does this vulnerability affect Node.js users?
This vulnerability affects users of the experimental permission model when the --allow-fs-read flag is used with a non-* argument.
How can I fix the vulnerability in Node.js version 20?
To fix the vulnerability in Node.js version 20, you should update to a version higher than 20.6.1.