Vulnerability · Published Aug 1, 2023 · Assigned by GitHub_M

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

High 7.5

In plain English

A high-severity improper access control in pnpm from pnpm. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.2%top 31.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@pnpm/cafs7.0.5GHSA-5r98-f33j-g8h7
npm@pnpm/exe8.6.8GHSA-5r98-f33j-g8h7
npm@pnpm/exe7.33.4GHSA-5r98-f33j-g8h7
npm@pnpm/linux-arm648.6.8GHSA-5r98-f33j-g8h7
npm@pnpm/linux-arm647.33.4GHSA-5r98-f33j-g8h7
npm@pnpm/linux-x647.33.4GHSA-5r98-f33j-g8h7
npm@pnpm/linux-x648.6.8GHSA-5r98-f33j-g8h7
npm@pnpm/linuxstatic-arm648.6.8GHSA-5r98-f33j-g8h7
npm@pnpm/linuxstatic-arm647.33.4GHSA-5r98-f33j-g8h7
npm@pnpm/macos-arm647.33.4GHSA-5r98-f33j-g8h7
npm@pnpm/macos-arm648.6.8GHSA-5r98-f33j-g8h7
npm@pnpm/macos-x648.6.8GHSA-5r98-f33j-g8h7
npm@pnpm/macos-x647.33.4GHSA-5r98-f33j-g8h7
npm@pnpm/win-x648.6.8GHSA-5r98-f33j-g8h7
npm@pnpm/win-x647.33.4GHSA-5r98-f33j-g8h7
npmpnpm8.6.8GHSA-5r98-f33j-g8h7
npmpnpm7.33.4GHSA-5r98-f33j-g8h7

Affected products (as reported)

VendorProductVersions
pnpm pnpm < 7.33.4>= 8.0.0, < 8.6.8

Weakness: CWE-284 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

References