CVE-2026-54328 Details
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.
A vulnerability in Pi, a terminal coding harness, allows local privilege escalation on shared Linux systems. In Pi versions 0.74.0 prior to 0.78.1, temporary npm or git extension packages were installed in predictable locations within the operating system's temporary directory. This created an opportunity for a local attacker to intercept and manipulate the expected package location before a victim user executed Pi with a temporary extension source. As a result, the attacker could inject malicious extension code that would run in the context of the victim's process, potentially leading to unauthorized access or modification of files accessible to that user. The issue is particularly concerning on Linux-based multi-user hosts where the temporary directory is shared across user accounts, such as development machines, CI runners, or HPC login nodes.
Users should upgrade to Pi version 0.78.1 or later, which moves temporary extension package installs to a private per-user directory with restricted permissions. For those using the deprecated @mariozechner/pi-coding-agent package, migration to the @earendil-works/pi-coding-agent package and upgrading to a fixed version is recommended.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 23, 2026CISA-ADP
Assessed Jun 24, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/earendil-works/pi/commit/a98e087e5d08ea2a536bf73dbb0aebb87c3ef72e | [email protected] | Source CodeVendor |
| https://github.com/earendil-works/pi/commit/ea3465a8e371a12d0167a06b60f93878e3a3df44 | [email protected] | Source CodeVendor |
| https://github.com/earendil-works/pi/pull/5345 | [email protected] | Issue TrackingVendor |
| https://github.com/earendil-works/pi/releases/tag/v0.78.1 | [email protected] | Release NotesVendor |
| https://github.com/earendil-works/pi/security/advisories/GHSA-jfgx-wxx8-mp94 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-379 | Creation of Temporary File in Directory with Insecure Permissions | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| earendil-works/pi | >= 0.74.0, < 0.78.1 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jun 24, 2026 | CVE Modified | CISA-ADP |
| Jun 23, 2026 | New CVE Received | [email protected] |
Volerion