CVEfocus › CVE database › CVE-2023-37478

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

CVSS 7.5 HighEPSS 1.0% (higher than 63% of CVEs)Published 2023-08-01Updated 2024-10-10Assigner: GitHub_M

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.

CWE-284

What to do

Fixed builds are available from npm: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

9Fixed

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
npm library@pnpm/cafsFixed7.0.5GHSA-5r98-f33j-g8h7
npm library@pnpm/exeFixed8.6.8GHSA-5r98-f33j-g8h7
npm library@pnpm/linux-arm64Fixed7.33.4GHSA-5r98-f33j-g8h7
npm library@pnpm/linux-x64Fixed8.6.8GHSA-5r98-f33j-g8h7
npm library@pnpm/linuxstatic-arm64Fixed8.6.8GHSA-5r98-f33j-g8h7
npm library@pnpm/macos-arm64Fixed8.6.8GHSA-5r98-f33j-g8h7
npm library@pnpm/macos-x64Fixed8.6.8GHSA-5r98-f33j-g8h7
npm library@pnpm/win-x64Fixed7.33.4GHSA-5r98-f33j-g8h7
npm librarypnpmFixed8.6.8GHSA-5r98-f33j-g8h7

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.