Reversible One-Way Hash in pnpm - CVE-2024-47829

 

Reversible One-Way Hash in pnpm - CVE-2024-47829

Published: April 28, 2025


Vulnerability identifier: #VU107994
CSH Severity: Low
CVSS v4: 2.1 [CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-47829
CWE-ID: CWE-328
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to overwrite existing packages on the system.

The vulnerability exists due to software pnpm uses md5 function as a path shortening compression function, which can cause collisions in path names. A remote attacker can trick the victim into installing a specially crafted package and overwrite existing packages on the system.


Affected software

pnpm
Fedora
nodejs-bash-language-server
nodejs-pnpm

How to mitigate CVE-2024-47829

Install updates from vendor's website.

pnpm - update to 10.0.0
nodejs-bash-language-server - addressed in versions 5.6.0-1.fc40, 5.6.0-1.fc41, 5.6.0-2.fc42
nodejs-pnpm - addressed in versions 10.9.0-1.fc40, 10.9.0-1.fc41, 10.9.0-1.fc42

External References

Related Security Bulletins