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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @pnpm/cafs | 7.0.5 | GHSA-5r98-f33j-g8h7 |
| npm | @pnpm/exe | 8.6.8 | GHSA-5r98-f33j-g8h7 |
| npm | @pnpm/exe | 7.33.4 | GHSA-5r98-f33j-g8h7 |
| npm | @pnpm/linux-arm64 | 8.6.8 | GHSA-5r98-f33j-g8h7 |
| npm | @pnpm/linux-arm64 | 7.33.4 | GHSA-5r98-f33j-g8h7 |
| npm | @pnpm/linux-x64 | 7.33.4 | GHSA-5r98-f33j-g8h7 |
| npm | @pnpm/linux-x64 | 8.6.8 | GHSA-5r98-f33j-g8h7 |
| npm | @pnpm/linuxstatic-arm64 | 8.6.8 | GHSA-5r98-f33j-g8h7 |
| npm | @pnpm/linuxstatic-arm64 | 7.33.4 | GHSA-5r98-f33j-g8h7 |
| npm | @pnpm/macos-arm64 | 7.33.4 | GHSA-5r98-f33j-g8h7 |
| npm | @pnpm/macos-arm64 | 8.6.8 | GHSA-5r98-f33j-g8h7 |
| npm | @pnpm/macos-x64 | 8.6.8 | GHSA-5r98-f33j-g8h7 |
| npm | @pnpm/macos-x64 | 7.33.4 | GHSA-5r98-f33j-g8h7 |
| npm | @pnpm/win-x64 | 8.6.8 | GHSA-5r98-f33j-g8h7 |
| npm | @pnpm/win-x64 | 7.33.4 | GHSA-5r98-f33j-g8h7 |
| npm | pnpm | 8.6.8 | GHSA-5r98-f33j-g8h7 |
| npm | pnpm | 7.33.4 | GHSA-5r98-f33j-g8h7 |
Affected products (as reported)
Weakness: CWE-284 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/pnpm/pnpm/security/advisories/GHSA-5r98-f33j-g8h7 x_refsource_CONFIRM
- https://github.com/pnpm/pnpm/releases/tag/v7.33.4 x_refsource_MISC
- https://github.com/pnpm/pnpm/releases/tag/v8.6.8 x_refsource_MISC