Predictable Package Names in pkg Lead to Security Risks

Check todayFull system takeover with local access.
7.8HIGH

CVE-2024-24828

Key Information:

Vendor

vercel

Status
CVE ID
CVE ID:
CVE-2024-24828
Vendor
CVE Published:
9 February 2024

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • No: Needs local access
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Check today

Find out if you're affected. If you are, patch.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory β†—
2Why it's rated "Check today"
  • Its CVSS severity is high (7.8).

What is CVE-2024-24828?

The pkg tool from Vercel, intended for bundling Node.js projects into executable files, exposes a vulnerability due to its use of a hardcoded directory on Unix systems, specifically /tmp/pkg/*. This shared directory lacks uniqueness for package names, making it predictable and susceptible to exploitation. If an attacker gains access to the local system, they can substitute legitimate executables with malicious ones of the same name, which users may unknowingly execute. The pkg tool is deprecated and will not receive patches for this vulnerability. Users are advised to check if their executables rely on native code and utilize the /tmp/pkg/ directory. Transitioning to actively maintained alternatives, such as Node.js 21’s single executable applications support, is strongly recommended for enhanced security.

Affected Version(s)

pkg <= 5.8.1

References

SVG Injection in Satori Library

CVE-2026-94545
VercelSatoriπŸ˜„πŸ‘Ύ5.3MEDIUM

Path Traversal in Next.js Framework

CVE-2026-75604
VercelNext.jsπŸ˜„πŸ‘Ύ9CRITICAL

Server-Side Request Forgery in Next.js

CVE-2026-44578
VercelNext.jsπŸ”₯πŸ˜„πŸ‘Ύ8.6HIGH
View more vercel vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

CVSS V3.1

Score:
7.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged
.