# CVE-2024-24828: Local Privilege Escalation in execuatables bundled by pkg

- Severity: Medium 6.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-02-09T15:20:27.000Z
- Modified: 2026-09-10T03:50:05.146Z
- Also known as: GHSA-22r3-9w55-cj54
- Weaknesses: CWE-276
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vercel pkg: <= 5.8.1; up to 5.8.1
- pkg (npm): up to 5.8.1

## Every score

- GitHub_M: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/vercel/pkg/security/advisories/GHSA-22r3-9w55-cj54> (vendor-advisory, web)
- <https://nodejs.org/api/single-executable-applications.html> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24828> (advisory)
- <https://github.com/vercel/pkg> (package)

## Sources

- CVE List: [CVE-2024-24828](https://www.cve.org/CVERecord?id=CVE-2024-24828), CVE Terms of Use, modified 2024-08-22
- GitHub Advisory Database: [GHSA-22r3-9w55-cj54](https://github.com/advisories/GHSA-22r3-9w55-cj54), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-24828](https://nvd.nist.gov/vuln/detail/CVE-2024-24828), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-24828 · Whole record: https://cve.day/CVE-2024-24828.json · Rebuilt by cve.day 2026-11-25T22:58:36.706Z
