CVE-2024-24828 in Vercel Pkg
pkg is tool design to bundle Node.js projects into an executables. Any native code packages built by `pkg` are written to a hardcoded directory. On unix systems, this is `/tmp/pkg/*` which is a shared directory for all users on the same local system. There is no uniqueness to the package names within this directory,...
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Vercel | Pkg | ≤ 5.8.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
pkg is tool design to bundle Node.js projects into an executables. Any native code packages built by `pkg` are written to a hardcoded directory. On unix systems, this is `/tmp/pkg/*` which is a shared directory for all users on the same local system. There is no uniqueness to the package names within this directory, they are predictable. An attacker who has access to the same local system has the ability to replace the genuine executables in the shared directory with malicious executables of the same name. A user may then run the malicious executable without realising it has been modified. This package is deprecated. Therefore, there will not be a patch provided for this vulnerability. To check if your executable build by pkg depends on native code and is vulnerable, run the executable and check if `/tmp/pkg/` was created. Users should transition to actively maintained alternatives. We would recommend investigating Node.js 21’s support for single executable applications. Given the decision to deprecate the pkg package, there are no official workarounds or remediations provided by our team. Users should prioritize migrating to other packages that offer similar functionality with enhanced security.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-24828 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-052179-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2024-02-09 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-276: Incorrect Default Permissions
Software sets overly permissive default access rights during installation or resource creation.
Related attack patterns (CAPEC)
CAPEC-81 Web Server Logs Tampering via CWE-276
CAPEC-127 Directory Indexing via CWE-276
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-276
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-24828 affects the 'pkg' tool, which bundles Node.js projects into executables. Native code packages are written to a predictable, shared directory on Unix systems, allowing local attackers to potentially overwrite or tamper with these files.
An attacker with access to the same local system can exploit the predictable naming and shared directory location of native code packages written by 'pkg' to the /tmp/pkg/* directory. This could lead to code injection or other malicious activities.
Questions
What is CVE-2024-24828?
CVE-2024-24828 affects the 'pkg' tool, which bundles Node.js projects into executables. Native code packages are written to a predictable, shared directory on Unix systems, allowing local attackers to potentially overwrite or tamper with these files.
What is the CVSS score for CVE-2024-24828?
CVE-2024-24828 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.3%.
Is CVE-2024-24828 actively exploited?
No confirmed active exploitation of CVE-2024-24828 as of 2026-09-25.
How do I remediate CVE-2024-24828?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2024-24828?
CVE-2024-24828 affects Vercel Pkg.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Vercel","product":"Pkg","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.