Skip to main content
← All vulnerabilities
CVE-2023-37478GHSA-5R98-F33J-G8H7

pnpm incorrectly parses tar archives relative to specification

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 7.33.4, 8.6.8, 7.0.5
2 proofs of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • pnpm pnpm

    fixed in 7.33.4; From 8.0.0 · fixed in 8.6.8

  • pnpmnpm

    fixed in 7.33.4

  • @pnpm/exenpm

    fixed in 7.33.4

  • @pnpm/linux-arm64npm

    fixed in 7.33.4

  • @pnpm/linux-x64npm

    fixed in 7.33.4

  • @pnpm/linuxstatic-arm64npm

    fixed in 7.33.4

  • @pnpm/macos-arm64npm

    fixed in 7.33.4

  • @pnpm/macos-x64npm

    fixed in 7.33.4

  • @pnpm/win-x64npm

    fixed in 7.33.4

  • @pnpm/cafsnpm

    fixed in 7.0.5

  • pnpmnpm

    From 8.0.0 · fixed in 8.6.8

  • @pnpm/exenpm

    From 8.0.0 · fixed in 8.6.8

  • @pnpm/linux-arm64npm

    From 8.0.0 · fixed in 8.6.8

  • @pnpm/linux-x64npm

    From 8.0.0 · fixed in 8.6.8

  • @pnpm/linuxstatic-arm64npm

    From 8.0.0 · fixed in 8.6.8

  • @pnpm/macos-arm64npm

    From 8.0.0 · fixed in 8.6.8

  • @pnpm/macos-x64npm

    From 8.0.0 · fixed in 8.6.8

  • @pnpm/win-x64npm

    From 8.0.0 · fixed in 8.6.8

References 5

GitHub · pnpm/pnpm

GitHub · TrevorGKann/CVE-2023-37478_npm_vs_pnpm

GitHub · li-minhao/CVE-2023-37478-Demo