nodejs: fs.statfs can retrive stats from files restricted by the Permission Model
Published Sep 12, 2023
6.5
MEDIUMCVSS 3.1
EPSS 1.36%
Description
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.
This flaw arises from an inadequate permission model that fails to restrict file stats through the `fs.statfs` API. As a result, malicious actors can retrieve stats from files that they do not have explicit read access to.
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.
Affected products
-
- Version 10.0StatusaffectedConstraints<10.*
- Version 11.0StatusaffectedConstraints<11.*
- Version 12.0StatusaffectedConstraints<12.*
- Version 13.0StatusaffectedConstraints<13.*
- Version 14.0StatusaffectedConstraints<14.*
- Version 15.0StatusaffectedConstraints<15.*
- Version 17.0StatusaffectedConstraints<17.*
- Version 19.0StatusaffectedConstraints<19.*
- Version 20.0StatusaffectedConstraints<20.5.1
- Version 4.0StatusaffectedConstraints<4.*
- Version 5.0StatusaffectedConstraints<5.*
- Version 6.0StatusaffectedConstraints<6.*
- Version 7.0StatusaffectedConstraints<7.*
- Version 8.0StatusaffectedConstraints<8.*
- Version 9.0StatusaffectedConstraints<9.*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Node.js | Node | unaffected |
|
No data.
Red Hat Enterprise Linux 8
nodejs:16/nodejs
Not affected
Red Hat Enterprise Linux 8
nodejs:18/nodejs
Not affected
Red Hat Enterprise Linux 9
nodejs
Not affected
Red Hat Enterprise Linux 9
nodejs:18/nodejs
Not affected
Red Hat Software Collections
rh-nodejs14-nodejs
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | nodejs:16/nodejs | Not affected | n/a |
| Red Hat Enterprise Linux 8 | nodejs:18/nodejs | Not affected | n/a |
| Red Hat Enterprise Linux 9 | nodejs | Not affected | n/a |
| Red Hat Enterprise Linux 9 | nodejs:18/nodejs | Not affected | n/a |
| Red Hat Software Collections | rh-nodejs14-nodejs | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
For this CVE, no Red Hat Products are affected as this CVE only affects Node.js version 20, specifically within the experimental permission model feature of Node.js 20, that we are not shipped.
Red Hat mitigation
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
References (7)
- https://access.redhat.com/security/cve/CVE-2023-32005 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2230958 Issue Tracking
- https://hackerone.com/reports/2051224 ExploitThird Party Advisory
- https://nodejs.org/en/blog/vulnerability/august-2023-security-releases#fsstatfs-can-retrive-stats-from-files-restricted-by-the-permission-model-lowcve-2023-32005
- https://nvd.nist.gov/vuln/detail/CVE-2023-32005
- https://security.netapp.com/advisory/ntap-20231103-0004/ Third Party AdvisoryVDB Entry
- https://www.cve.org/CVERecord?id=CVE-2023-32005
Change history (0)
No recorded changes yet.