Skip to content

CVE-2024-21891 Node.js depends on multiple built-in utility functions to normalize paths provided to node:fs functions, which can be overwitten with user-defined implementations leading to filesystem permission mode...

HighCVSS 8.8 EPSS 1.2%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebian

Description

Node.js depends on multiple built-in utility functions to normalize paths provided to node:fs functions, which can be overwitten with user-defined implementations leading to filesystem permission model bypass through path traversal attack.
This vulnerability affects all users using the experimental permission model in Node.js 20 and Node.js 21.
Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.

Upgrade path

4 packages: 2 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
nodejs node >= 4.0; >= 5.0; >= 6.0; >= 7.0 +13 more 20.11.1, 21.6.2 Partially fixed
nodejs node.js >= 20.0.0, < 20.11.1; >= 21.0.0, < 21.6.2 20.11.1, 21.6.2 Fixed
ubuntu/nodejs(Ubuntu 25.04) < 20.18.1+dfsg-1ubuntu2; = 20.16.0+dfsg-1ubuntu1; = 20.17.0+dfsg-2ubuntu1; = 20.18.0+dfsg-2 +1 more 20.18.1+dfsg-1ubuntu2 Fixed
nodejs = 20.11.0; = 21.6.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
nodejs node >= 4.0 No fix listed
nodejs node >= 5.0 No fix listed
nodejs node >= 6.0 No fix listed
nodejs node >= 7.0 No fix listed
nodejs node >= 8.0 No fix listed
nodejs node >= 9.0 No fix listed
nodejs node >= 10.0 No fix listed
nodejs node >= 11.0 No fix listed
nodejs node >= 12.0 No fix listed
nodejs node >= 13.0 No fix listed
nodejs node >= 14.0 No fix listed
nodejs node >= 15.0 No fix listed
nodejs node >= 16.0 No fix listed
nodejs node >= 17.0 No fix listed
nodejs node >= 19.0 No fix listed
nodejs node >= 20.0, < 20.11.1 20.11.1
nodejs node >= 21.0, < 21.6.2 21.6.2
nodejs = 21.6.0 No fix listed
nodejs = 20.11.0 No fix listed
nodejs node.js >= 20.0.0, < 20.11.1 20.11.1
nodejs node.js >= 21.0.0, < 21.6.2 21.6.2
ubuntu/nodejs(Ubuntu:25.04) < 20.18.1+dfsg-1ubuntu2 20.18.1+dfsg-1ubuntu2
ubuntu/nodejs(Ubuntu:25.04) = 20.16.0+dfsg-1ubuntu1 No fix listed
ubuntu/nodejs(Ubuntu:25.04) = 20.17.0+dfsg-2ubuntu1 No fix listed
ubuntu/nodejs(Ubuntu:25.04) = 20.18.0+dfsg-2 No fix listed
Show 1 more
ProductAffected versionsFixed in
ubuntu/nodejs(Ubuntu:25.04) = 20.18.1+dfsg-1ubuntu1 No fix listed

References