Pi: Predictable temporary extension install paths allow local privilege escalation on shared Linux hosts
Summary
| CVE | CVE-2026-54328 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-06-23 20:16:49 UTC |
| Updated | 2026-06-23 20:16:49 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.3 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Problem Types: CWE-379 | CWE-379 CWE-379: Creation of Temporary File in Directory with Insecure Permissions
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.3 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 7.3 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Earendil-works | Pi | affected >= 0.74.0, < 0.78.1 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/earendil-works/pi/commit/ea3465a8e371a12d0167a06b60f93878e3a3... | [email protected] | github.com | |
| github.com/earendil-works/pi/releases/tag/v0.78.1 | [email protected] | github.com | |
| github.com/earendil-works/pi/commit/a98e087e5d08ea2a536bf73dbb0aebb87c3e... | [email protected] | github.com | |
| github.com/earendil-works/pi/security/advisories/GHSA-jfgx-wxx8-mp94 | [email protected] | github.com | |
| github.com/earendil-works/pi/pull/5345 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.