Creation of Temporary File in Directory with Insecure Permissions Affecting pkg package, versions *
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-PKG-6241720
- published 13 Feb 2024
- disclosed 10 Feb 2024
- credit Tomi Belan
Introduced: 10 Feb 2024
CVE-2024-24828 Open this link in a new tabHow to fix?
There is no fixed version for pkg
.
Overview
pkg is a command line interface that enables packaging a Node.js project into an executable
Affected versions of this package are vulnerable to Creation of Temporary File in Directory with Insecure Permissions in /tmp/pkg/
, which is the hardcoded location for all included packages. A user with write access to that shared directory can replace packages and have them unknowingly executed by other users.
Note: pkg
is deprecated so no fix is expected for this issue. However, the maintainers "recommend investigating Node.js 21’s support for single executable applications".