Vulnerability in Pnpm
CVE-2023-37478
pnpm is a package manager. It is possible to construct a tarball that, when installed via npm or parsed by the registry is safe, but when installed via pnpm is malicious, due to how pnpm parses tar archives. This can result in a package that appears safe on the npm registry or when installed via npm being replaced with a compromised or malicious version when installed via pnpm. This issue has been patched in version(s) 7.33.4 and 8.6.8.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.012, 68.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Pnpm — versions < 7.33.4, >= 8.0.0, < 8.6.8
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- TrevorGKann/CVE-2023-37478_npm_vs_pnpm (last pushed 2023-11-30): CVE-2023-37478 showcases how a difference in npm and pnpm install packages that could be exploited by a well crafted tar.gz packge. This repo shows a demo.
- li-minhao/CVE-2023-37478-Demo (last pushed 2023-11-07)
Also mentioned in 1 other repository (nomi-sec/PoC-in-GitHub). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/pnpm/pnpm/security/advisories/GHSA-5r98-f33j-g8h7 (Vendor Advisory)
- https://github.com/pnpm/pnpm/releases/tag/v7.33.4 (Release Notes)
- https://github.com/pnpm/pnpm/releases/tag/v8.6.8 (Release Notes)
This CVE has public exploit evidence. See the latest CVEs with public exploits.