Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-37478

HIGH 7.5EPSS 63%

pnpm incorrectly parses tar archives relative to specification

Also known as GHSA-5r98-f33j-g8h7

Mitigation

  • Upgrade pnpm to one of 7.33.4, 8.6.8 (or later in the same release line).
  • Upgrade @pnpm/exe to one of 7.33.4, 8.6.8 (or later in the same release line).
  • Upgrade @pnpm/linux-arm64 to one of 7.33.4, 8.6.8 (or later in the same release line).
  • Upgrade @pnpm/linux-x64 to one of 7.33.4, 8.6.8 (or later in the same release line).
  • Upgrade @pnpm/linuxstatic-arm64 to one of 7.33.4, 8.6.8 (or later in the same release line).
  • Upgrade @pnpm/macos-arm64 to one of 7.33.4, 8.6.8 (or later in the same release line).
  • Upgrade @pnpm/macos-x64 to one of 7.33.4, 8.6.8 (or later in the same release line).
  • Upgrade @pnpm/win-x64 to one of 7.33.4, 8.6.8 (or later in the same release line).

Who should check

  • Projects that depend on npm package pnpm (< 7.33.4)
  • Projects that depend on npm package @pnpm/exe (< 7.33.4)
  • Projects that depend on npm package @pnpm/linux-arm64 (< 7.33.4)
  • Projects that depend on npm package @pnpm/linux-x64 (< 7.33.4)
  • Projects that depend on npm package @pnpm/linuxstatic-arm64 (< 7.33.4)
  • Projects that depend on npm package @pnpm/macos-arm64 (< 7.33.4)
  • Projects that depend on npm package @pnpm/macos-x64 (< 7.33.4)
  • Projects that depend on npm package @pnpm/win-x64 (< 7.33.4)

Vulnerability facts

Affected
pnpm < 7.33.4; @pnpm/exe < 7.33.4; @pnpm/linux-arm64 < 7.33.4; @pnpm/linux-x64 < 7.33.4; @pnpm/linuxstatic-arm64 < 7.33.4; @pnpm/macos-arm64 < 7.33.4; @pnpm/macos-x64 < 7.33.4; @pnpm/win-x64 < 7.33.4; @pnpm/cafs < 7.0.5
Fixed in
7.33.4, 8.6.8, 7.0.5
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
1.04% chance of exploitation in 30 days (percentile 63, 2026-11-26)
CWE
CWE-284
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
npm pnpm< 7.33.47.33.4, 8.6.8osv
npm @pnpm/exe< 7.33.47.33.4, 8.6.8osv
npm @pnpm/linux-arm64< 7.33.47.33.4, 8.6.8osv
npm @pnpm/linux-x64< 7.33.47.33.4, 8.6.8osv
npm @pnpm/linuxstatic-arm64< 7.33.47.33.4, 8.6.8osv
npm @pnpm/macos-arm64< 7.33.47.33.4, 8.6.8osv
npm @pnpm/macos-x64< 7.33.47.33.4, 8.6.8osv
npm @pnpm/win-x64< 7.33.47.33.4, 8.6.8osv
npm @pnpm/cafs< 7.0.57.0.5osv
pnpm< 7.33.4; >= 8.0.0, < 8.6.8—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-37478. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-37478.md
Affected: pnpm < 7.33.4; @pnpm/exe < 7.33.4; @pnpm/linux-arm64 < 7.33.4; @pnpm/linux-x64 < 7.33.4; @pnpm/linuxstatic-arm64 < 7.33.4; @pnpm/macos-arm64 < 7.33.4; @pnpm/macos-x64 < 7.33.4; @pnpm/win-x64 < 7.33.4; @pnpm/cafs < 7.0.5
Fixed in: 7.33.4, 8.6.8, 7.0.5

Steps:
1. Search this machine and project for pnpm (npm), @pnpm/exe (npm), @pnpm/linux-arm64 (npm), @pnpm/linux-x64 (npm), @pnpm/linuxstatic-arm64 (npm), @pnpm/macos-arm64 (npm): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2023-37478 being exploited?

There is no confirmed exploitation: CVE-2023-37478 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.04% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2023-37478?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2023-37478?

pnpm < 7.33.4; @pnpm/exe < 7.33.4; @pnpm/linux-arm64 < 7.33.4; @pnpm/linux-x64 < 7.33.4; @pnpm/linuxstatic-arm64 < 7.33.4; @pnpm/macos-arm64 < 7.33.4; @pnpm/macos-x64 < 7.33.4; @pnpm/win-x64 < 7.33.4; @pnpm/cafs < 7.0.5.

Is there a fix for CVE-2023-37478?

Yes. Fixed in 7.33.4, 8.6.8, 7.0.5. Upgrade pnpm to one of 7.33.4, 8.6.8 (or later in the same release line). Upgrade @pnpm/exe to one of 7.33.4, 8.6.8 (or later in the same release line). Upgrade @pnpm/linux-arm64 to one of 7.33.4, 8.6.8 (or later in the same release line). Upgrade @pnpm/linux-x64 to one of 7.33.4, 8.6.8 (or later in the same release line). Upgrade @pnpm/linuxstatic-arm64 to one of 7.33.4, 8.6.8 (or later in the same release line). Upgrade @pnpm/macos-arm64 to one of 7.33.4, 8.6.8 (or later in the same release line). Upgrade @pnpm/macos-x64 to one of 7.33.4, 8.6.8 (or later in the same release line). Upgrade @pnpm/win-x64 to one of 7.33.4, 8.6.8 (or later in the same release line).

How do I check if I'm affected by CVE-2023-37478?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors