{"id":"CVE-2026-54328","published":"2026-06-23T19:25:04Z","modified":"2026-06-24T13:38:04Z","title":"Pi: Predictable temporary extension install paths allow local privilege escalation on shared Linux hosts","vendor":"earendil-works","product":"pi","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00164,"percentile":0.03143,"provenance":"source"},"cwes":[{"id":"CWE-379","name":"Creation of Temporary File in Directory with Insecure Permissions"}],"references":[{"url":"https://github.com/earendil-works/pi/security/advisories/GHSA-jfgx-wxx8-mp94","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/earendil-works/pi/pull/5345","tags":["x_refsource_MISC"]},{"url":"https://github.com/earendil-works/pi/commit/a98e087e5d08ea2a536bf73dbb0aebb87c3ef72e","tags":["x_refsource_MISC"]},{"url":"https://github.com/earendil-works/pi/commit/ea3465a8e371a12d0167a06b60f93878e3a3df44","tags":["x_refsource_MISC"]},{"url":"https://github.com/earendil-works/pi/releases/tag/v0.78.1","tags":["x_refsource_MISC"]}],"priority":{"score":5.7,"factors":[{"name":"EPSS percentile","points":0.63},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"earendil-works","affectedVersions":[{"vendor":"earendil-works","product":"pi","versions":[">= 0.74.0, < 0.78.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-24T13:37:52.524343Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@earendil-works/pi-coding-agent","vulnerableRanges":[">=0.74.0, <0.78.1"],"patched":["0.78.1"],"from":["GHSA-jfgx-wxx8-mp94"],"provenance":"source"},{"ecosystem":"npm","package":"@mariozechner/pi-coding-agent","vulnerableRanges":[">=0.50.0, <=0.73.1"],"patched":[],"from":["GHSA-jfgx-wxx8-mp94"],"provenance":"source"}],"summary":{"text":"Pi, a minimal terminal coding harness, uses predictable temporary install paths for npm or git extension packages in versions from 0.74.0 through 0.78.1, which is where the flaw lies. A local attacker with write access to the shared temporary directory on a multi-user Linux host could pre-stage the expected package location, and if a victim user then runs pi with a temporary extension package source, attacker-controlled extension code would load into the victim's process, requiring the victim to take an action to run pi.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:27Z"},"euvd":{"id":"EUVD-2026-38580","exploited":false,"provenance":"source"}}