Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2023-37478 EUVD-2023-2219GHSA-5r98-f33j-g8h7

pnpm incorrectly parses tar archives relative to specification

Published Aug 1, 2023 · Updated Oct 10, 2024 · 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.

Affected products

VendorProductAffectedFixed
pnpm pnpm < 7.33.4, >= 8.0.0, < 8.6.8 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm @pnpm/cafs < 7.0.5 7.0.5 GHSA-5r98-f33j-g8h7
npm @pnpm/exe < 7.33.4 7.33.4 GHSA-5r98-f33j-g8h7
npm @pnpm/exe >= 8.0.0, < 8.6.8 8.6.8 GHSA-5r98-f33j-g8h7
npm @pnpm/linux-arm64 < 7.33.4 7.33.4 GHSA-5r98-f33j-g8h7
npm @pnpm/linux-arm64 >= 8.0.0, < 8.6.8 8.6.8 GHSA-5r98-f33j-g8h7
npm @pnpm/linux-x64 < 7.33.4 7.33.4 GHSA-5r98-f33j-g8h7
npm @pnpm/linux-x64 >= 8.0.0, < 8.6.8 8.6.8 GHSA-5r98-f33j-g8h7
npm @pnpm/linuxstatic-arm64 < 7.33.4 7.33.4 GHSA-5r98-f33j-g8h7
npm @pnpm/linuxstatic-arm64 >= 8.0.0, < 8.6.8 8.6.8 GHSA-5r98-f33j-g8h7
npm @pnpm/macos-arm64 < 7.33.4 7.33.4 GHSA-5r98-f33j-g8h7
npm @pnpm/macos-arm64 >= 8.0.0, < 8.6.8 8.6.8 GHSA-5r98-f33j-g8h7
npm @pnpm/macos-x64 < 7.33.4 7.33.4 GHSA-5r98-f33j-g8h7
npm @pnpm/macos-x64 >= 8.0.0, < 8.6.8 8.6.8 GHSA-5r98-f33j-g8h7
npm @pnpm/win-x64 < 7.33.4 7.33.4 GHSA-5r98-f33j-g8h7
npm @pnpm/win-x64 >= 8.0.0, < 8.6.8 8.6.8 GHSA-5r98-f33j-g8h7
npm pnpm < 7.33.4 7.33.4 GHSA-5r98-f33j-g8h7
npm pnpm >= 8.0.0, < 8.6.8 8.6.8 GHSA-5r98-f33j-g8h7

References