CVE-2026-54328 Pi: Predictable temporary extension install paths allow local privilege escalation on shared Linux hosts
HighCVSS 7.3
EPSS 0.16%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| earendil-works @earendil-works/pi-coding-agent(npm) | >= 0.74.0, < 0.78.1 | 0.78.1 | Fixed |
| mariozechner @mariozechner/pi-coding-agent(npm) | >= 0.50.0, <= 0.73.1 | after 0.73.1 | Fixed |
| earendil-works pi | = >= 0.74.0, < 0.78.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| earendil-works pi | = >= 0.74.0, < 0.78.1 | No fix listed |
| earendil-works @earendil-works/pi-coding-agent(npm) | >= 0.74.0, < 0.78.1 | 0.78.1 |
| mariozechner @mariozechner/pi-coding-agent(npm) | >= 0.50.0, <= 0.73.1 | No fix listed |
References
- https://github.com/earendil-works/pi/security/advisories/GHSA-jfgx-wxx8-mp94 vendor-advisory
- https://github.com/earendil-works/pi/pull/5345 patch
- https://github.com/earendil-works/pi/commit/a98e087e5d08ea2a536bf73dbb0aebb87c3ef72e patch
- https://github.com/earendil-works/pi/commit/ea3465a8e371a12d0167a06b60f93878e3a3df44 patch
- https://github.com/earendil-works/pi/releases/tag/v0.78.1
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product