# CVE-2026-54328: Pi: Predictable temporary extension install paths allow local privilege escalation on shared Linux hosts

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-06-17T13:55:13.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-jfgx-wxx8-mp94
- Weaknesses: CWE-379
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- earendil-works pi: >= 0.74.0, < 0.78.1
- @earendil-works/pi-coding-agent (npm): from 0.74.0 before 0.78.1
- @mariozechner/pi-coding-agent (npm): from 0.50.0 up to 0.73.1

## Every score

- GitHub_M: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/earendil-works/pi/security/advisories/GHSA-jfgx-wxx8-mp94> (web)
- <https://github.com/earendil-works/pi/pull/5345> (web)
- <https://github.com/earendil-works/pi/commit/a98e087e5d08ea2a536bf73dbb0aebb87c3ef72e> (web)
- <https://github.com/earendil-works/pi/commit/ea3465a8e371a12d0167a06b60f93878e3a3df44> (web)
- <https://github.com/earendil-works/pi/releases/tag/v0.78.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54328> (advisory)
- <https://github.com/earendil-works/pi> (package)

## Sources

- CVE List: [CVE-2026-54328](https://www.cve.org/CVERecord?id=CVE-2026-54328), CVE Terms of Use, modified 2026-06-24
- GitHub Advisory Database: [GHSA-jfgx-wxx8-mp94](https://github.com/advisories/GHSA-jfgx-wxx8-mp94), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-54328](https://nvd.nist.gov/vuln/detail/CVE-2026-54328), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54328 · Whole record: https://cve.day/CVE-2026-54328.json · Rebuilt by cve.day 2026-11-25T22:59:25.531Z
