CVE-2026-54328

Pi: Predictable temporary extension install paths allow local privilege escalation on shared Linux hosts

State
Published
Severity
7.3 High
Published
Jun 23, 2026
Updated
Jun 24, 2026
Reserved
Jun 12, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HGitHub_M

Weaknesses

  • CWE-379 Creation of Temporary File in Directory with Insecure Permissions

Affected Products

ProductVersions
piearendil-works
  • >= 0.74.0, < 0.78.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.