First published: Thu Aug 10 2023(Updated: )
Node.js could allow a remote attacker to bypass security restrictions, caused by the use of module.constructor.createRequire(). By sending a specially crafted request, an attacker could exploit this vulnerability to bypass the permission policy mechanism.
Credit: support@hackerone.com support@hackerone.com support@hackerone.com
Affected Software | Affected Version | How to fix |
---|---|---|
Nodejs Node.js | >=16.0.0<=16.20.1 | |
Nodejs Node.js | >=18.0.0<=18.17.0 | |
Nodejs Node.js | >=20.0.0<=20.5.0 | |
Fedoraproject Fedora | =37 | |
Fedoraproject Fedora | =38 | |
ubuntu/nodejs | <12.22.9~dfsg-1ubuntu3.6 | 12.22.9~dfsg-1ubuntu3.6 |
ubuntu/nodejs | <18.13.0+dfsg1-1ubuntu2.3 | 18.13.0+dfsg1-1ubuntu2.3 |
debian/nodejs | <=12.22.12~dfsg-1~deb11u4 | 18.19.0+dfsg-6~deb12u2 18.19.0+dfsg-6~deb12u1 20.14.0+dfsg-3 20.15.0+dfsg-1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2023-32006 refers to a vulnerability that allows the bypassing of the policy mechanism in Node.js, potentially allowing modules to be required outside of the defined policy.
This vulnerability affects all users of Node.js who are using the experimental policy mechanism in versions 16.x, 18.x, and 20.x.
CVE-2023-32006 has a severity rating of 8.8 (high).
CVE-2023-32006 can be exploited by utilizing the `module.constructor.createRequire()` function to require modules that are not defined in the policy.json file.
Yes, you can find more information about CVE-2023-32006 at the following references: [Link1](https://hackerone.com/reports/2043807), [Link2](https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JQPELKG2LVTADSB7ME73AV4DXQK47PWK/), [Link3](https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PBOZE2QZIBLFFTYWYN23FGKN6HULZ6HX/)