{"cve":"CVE-2024-24828","nvd":{"published":"2024-02-09T23:15:09.837","modified":"2026-06-17T07:14:58.133","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-276"],"references":["https://github.com/vercel/pkg/security/advisories/GHSA-22r3-9w55-cj54","https://nodejs.org/api/single-executable-applications.html","https://github.com/vercel/pkg/security/advisories/GHSA-22r3-9w55-cj54","https://nodejs.org/api/single-executable-applications.html"],"products":["vercel:pkg"],"source":"nvd","synced_at":"2026-10-19T21:45:59.823092188+00:00"},"epss":{"cve":"CVE-2024-24828","score":0.00233,"percentile":0.14221,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-22r3-9w55-cj54","url":"https://osv.dev/vulnerability/GHSA-22r3-9w55-cj54","summary":"Pkg Local Privilege Escalation","modified":"2026-09-10T03:50:05.146096058Z","packages":[{"ecosystem":"npm","name":"pkg","purl":"pkg:npm/pkg","ranges":["<=5.8.1"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}