{"id":"CVE-2023-37478","published":"2023-08-01T11:43:04Z","modified":"2024-10-10T16:00:56Z","title":"pnpm incorrectly parses tar archives relative to specification","vendor":"pnpm","product":"pnpm","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.012,"percentile":0.68925,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://github.com/pnpm/pnpm/security/advisories/GHSA-5r98-f33j-g8h7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pnpm/pnpm/releases/tag/v7.33.4","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnpm/pnpm/releases/tag/v8.6.8","tags":["x_refsource_MISC"]}],"priority":{"score":24.0,"factors":[{"name":"EPSS percentile","points":13.79},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"exploitSources":{"pocGithub":{"count":1,"skipped":1,"earliest":"2023-10-24","earliestUrl":"https://github.com/TrevorGKann/CVE-2023-37478_npm_vs_pnpm","repos":[{"name":"TrevorGKann/CVE-2023-37478_npm_vs_pnpm","url":"https://github.com/TrevorGKann/CVE-2023-37478_npm_vs_pnpm","stars":0,"created":"2023-10-24"}]},"first":{"date":"2023-10-24","source":"PoC-in-GitHub","url":"https://github.com/TrevorGKann/CVE-2023-37478_npm_vs_pnpm"},"provenance":"source"},"vendorSlug":"pnpm","affectedVersions":[{"vendor":"pnpm","product":"pnpm","versions":["< 7.33.4",">= 8.0.0, < 8.6.8"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-10-10T15:26:22.930913Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"pnpm","vulnerableRanges":["<7.33.4",">=8.0.0, <8.6.8"],"patched":["7.33.4","8.6.8"],"from":["GHSA-5r98-f33j-g8h7"],"provenance":"source"},{"ecosystem":"npm","package":"@pnpm/exe","vulnerableRanges":["<7.33.4",">=8.0.0, <8.6.8"],"patched":["7.33.4","8.6.8"],"from":["GHSA-5r98-f33j-g8h7"],"provenance":"source"},{"ecosystem":"npm","package":"@pnpm/linux-arm64","vulnerableRanges":["<7.33.4",">=8.0.0, <8.6.8"],"patched":["7.33.4","8.6.8"],"from":["GHSA-5r98-f33j-g8h7"],"provenance":"source"},{"ecosystem":"npm","package":"@pnpm/linux-x64","vulnerableRanges":["<7.33.4",">=8.0.0, <8.6.8"],"patched":["7.33.4","8.6.8"],"from":["GHSA-5r98-f33j-g8h7"],"provenance":"source"},{"ecosystem":"npm","package":"@pnpm/linuxstatic-arm64","vulnerableRanges":["<7.33.4",">=8.0.0, <8.6.8"],"patched":["7.33.4","8.6.8"],"from":["GHSA-5r98-f33j-g8h7"],"provenance":"source"},{"ecosystem":"npm","package":"@pnpm/macos-arm64","vulnerableRanges":["<7.33.4",">=8.0.0, <8.6.8"],"patched":["7.33.4","8.6.8"],"from":["GHSA-5r98-f33j-g8h7"],"provenance":"source"},{"ecosystem":"npm","package":"@pnpm/macos-x64","vulnerableRanges":["<7.33.4",">=8.0.0, <8.6.8"],"patched":["7.33.4","8.6.8"],"from":["GHSA-5r98-f33j-g8h7"],"provenance":"source"},{"ecosystem":"npm","package":"@pnpm/win-x64","vulnerableRanges":["<7.33.4",">=8.0.0, <8.6.8"],"patched":["7.33.4","8.6.8"],"from":["GHSA-5r98-f33j-g8h7"],"provenance":"source"},{"ecosystem":"npm","package":"@pnpm/cafs","vulnerableRanges":["<7.0.5"],"patched":["7.0.5"],"from":["GHSA-5r98-f33j-g8h7"],"provenance":"source"}],"summary":{"text":"pnpm, the Node.js package manager, incorrectly parses tar archives in a way that deviates from the specification, so a crafted tarball that is safe when handled by npm or the registry is interpreted differently by pnpm. An attacker who can get such a tarball published or served to a victim can have pnpm install a malicious version of a package that otherwise appears safe, which requires network access to the package source, low privileges, and a high-complexity setup.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:20Z"},"euvd":{"id":"EUVD-2023-2219","exploited":false,"provenance":"source"}}