Pi
Pi: Predictable temporary extension install paths allow local privilege escalation on shared Linux hosts
Pi is a minimal terminal coding harness. From 0.74.0 until 0.78.1, Pi versions with temporary npm or git extension package installs used predictable paths under the operating system temporary directory. On Linux-based multi-user systems, a local attacker who can write to the shared temporary directory could prepare the expected package location before another user runs pi with a temporary extension package source. Pi could then load attacker-controlled extension code in the victim user's process. This vulnerability is fixed in 0.78.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.74.0, < 0.78.1
Fixed in 0.78.1
Mitigation
Upgrade pi to 0.78.1 or later.
References
- Vendor advisory github.com/earendil-works/pi/security/advisori…
- Patch github.com/earendil-works/pi/pull/5345
- Patch github.com/earendil-works/pi/commit/a98e087e5d…
2 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.