# CVE-2023-37478: pnpm incorrectly parses tar archives relative to specification

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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): 1.04%, higher than 63% of CVEs (2026-11-30)
- Published: 2023-08-01T11:43:04.080Z
- Modified: 2026-09-10T03:49:57.359Z
- Also known as: GHSA-5r98-f33j-g8h7
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pnpm pnpm: < 7.33.4; >= 8.0.0, < 8.6.8; before 7.33.4; from 8.0.0 before 8.6.8
- pnpm (npm): before 7.33.4; from 8.0.0 before 8.6.8
- @pnpm/exe (npm): before 7.33.4; from 8.0.0 before 8.6.8
- @pnpm/linux-arm64 (npm): before 7.33.4; from 8.0.0 before 8.6.8
- @pnpm/linux-x64 (npm): before 7.33.4; from 8.0.0 before 8.6.8
- @pnpm/linuxstatic-arm64 (npm): before 7.33.4; from 8.0.0 before 8.6.8
- @pnpm/macos-arm64 (npm): before 7.33.4; from 8.0.0 before 8.6.8
- @pnpm/macos-x64 (npm): before 7.33.4; from 8.0.0 before 8.6.8
- @pnpm/win-x64 (npm): before 7.33.4; from 8.0.0 before 8.6.8
- @pnpm/cafs (npm): before 7.0.5

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/pnpm/pnpm/security/advisories/GHSA-5r98-f33j-g8h7> (vendor-advisory, web)
- <https://github.com/pnpm/pnpm/releases/tag/v7.33.4> (release-notes, web)
- <https://github.com/pnpm/pnpm/releases/tag/v8.6.8> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-37478> (advisory)
- <https://github.com/pnpm/pnpm> (package)

## Sources

- CVE List: [CVE-2023-37478](https://www.cve.org/CVERecord?id=CVE-2023-37478), CVE Terms of Use, modified 2024-10-10
- GitHub Advisory Database: [GHSA-5r98-f33j-g8h7](https://github.com/advisories/GHSA-5r98-f33j-g8h7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-37478](https://nvd.nist.gov/vuln/detail/CVE-2023-37478), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-37478 · Whole record: https://cve.day/CVE-2023-37478.json · Rebuilt by cve.day 2026-11-25T22:58:26.623Z
