---
title: "GHSA-jfgx-wxx8-mp94: Pi Agent: Predictable temporary extension install paths allow local privilege escalation on shared Linux hosts"
description: "High severity. Pi Agent: Predictable temporary extension install paths allow local privilege escalation on shared Linux hosts."
url: https://inlinr.com/advisories/GHSA-jfgx-wxx8-mp94
lang: en
---

[Packages](https://inlinr.com/packages)

High Vulnerability GHSA-jfgx-wxx8-mp94 CVE-2026-54328 Published 17 Jun 2026

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

Your version of @earendil-works/pi-coding-agent 

Affected releases · [@earendil-works/pi-coding-agent](https://inlinr.com/packages/@earendil-works/pi-coding-agent)

- 0.78.x 0.78.0 Fixed in 0.78.1
- 0.77.x 0.77.0 No fix on this line yet
- 0.76.x 0.76.0 No fix on this line yet
- 0.75.x 0.75.0 – 0.75.5 No fix on this line yet
- 0.74.x 0.74.0 – 0.74.2 No fix on this line yet

On 0.78.x, the newest line:

```
npm install @earendil-works/pi-coding-agent@0.78.1
```

Every release on a timeline

1.x 

1. Not affected

1.0.0 – 1.6.0  
13 releases, latest

0.x 

1. Affected

0.74.0 – 0.78.0  
12 releases
2. Fixed

0.78.1 – 0.99.2  
40 releases

65 stable releases of @earendil-works/pi-coding-agent, oldest to newest, one row per major.

Your version of @mariozechner/pi-coding-agent 

Affected releases · [@mariozechner/pi-coding-agent](https://inlinr.com/packages/@mariozechner/pi-coding-agent)

- 0.73.x 0.73.0 – 0.73.1 No fix on this line yet
- 0.72.x 0.72.0 – 0.72.1 No fix on this line yet
- 0.71.x 0.71.0 – 0.71.1 No fix on this line yet
- 0.70.x 0.70.0 – 0.70.6 No fix on this line yet
- 0.69.x 0.69.0 No fix on this line yet
- 0.68.x 0.68.0 – 0.68.1 No fix on this line yet
- 0.67.x 0.67.0 – 0.67.68 No fix on this line yet
- 0.66.x 0.66.0 – 0.66.1 No fix on this line yet
- 0.65.x 0.65.0 – 0.65.2 No fix on this line yet
- 0.64.x 0.64.0 No fix on this line yet
- 0.63.x 0.63.0 – 0.63.2 No fix on this line yet
- 0.62.x 0.62.0 No fix on this line yet
- 0.61.x 0.61.0 – 0.61.1 No fix on this line yet
- 0.60.x 0.60.0 No fix on this line yet
- 0.59.x 0.59.0 No fix on this line yet
- 0.58.x 0.58.0 – 0.58.4 No fix on this line yet
- 0.57.x 0.57.0 – 0.57.1 No fix on this line yet
- 0.56.x 0.56.0 – 0.56.3 No fix on this line yet
- 0.55.x 0.55.0 – 0.55.4 No fix on this line yet
- 0.54.x 0.54.0 – 0.54.2 No fix on this line yet
- 0.53.x 0.53.0 – 0.53.1 No fix on this line yet
- 0.52.x 0.52.0 – 0.52.12 No fix on this line yet
- 0.51.x 0.51.0 – 0.51.6 No fix on this line yet
- 0.50.x 0.50.0 – 0.50.9 No fix on this line yet

No release fixes it yet, not even the latest, 0.73.1.

Every release on a timeline

1. Not affected

0.6.2 – 0.49.3  
181 releases
2. Affected

0.50.0 – 0.73.1  
90 releases, latest

271 stable releases of @mariozechner/pi-coding-agent, oldest to newest.

## What happens

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

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.

Info

The vulnerable code path affected temporary extension package sources loaded with `--extension` or `-e`, specifically npm and git package sources. The temporary npm install root and temporary git clone paths were deterministic and rooted under `os.tmpdir()/pi-extensions`. The path was derived from public source information rather than from a per-user private directory or an unpredictable temporary directory.

During resource resolution, pi considered an npm package or git checkout present if the expected package path already existed. Extension resources discovered from that package location were then loaded by the extension loader. Because extensions execute with the same privileges as the invoking pi process, pre-created temporary package contents could execute as the victim user.

The issue primarily affects Linux-based multi-user hosts where the operating system temporary directory is shared across user accounts, such as shared development machines, CI runners, HPC login nodes, and similar environments. On Windows and macOS, the default temporary directory is typically user-scoped, so default configurations are not expected to be affected unless the temporary directory is overridden to a shared writable location.

Impact

A local attacker with access to the same host can exploit this only if a victim runs a vulnerable pi version with a temporary npm or git extension package source that maps to the attacker-prepared location. No network attack path is involved and no race must be won, but victim interaction is required.

Successful exploitation can allow arbitrary extension code execution as the victim user. This can expose or modify files accessible to that user and can also cause denial of service or data loss through malicious package contents or unsafe temporary cache entries.

Affected versions

- [@earendil-works/pi-coding-agent](https://inlinr.com/packages/@earendil-works/pi-coding-agent): affected `>= 0.74.0, < 0.78.1`; patched `>= 0.78.1`
- [@mariozechner/pi-coding-agent](https://inlinr.com/packages/@mariozechner/pi-coding-agent): affected `>= 0.50.0, <= 0.73.1`; no patched version was released under the old package name. Migrate to `@earendil-works/pi-coding-agent >= 0.78.1`.

The solution

Version 0.78.1 moves temporary extension package installs to a private per-user directory under `~/.pi/agent/tmp/extensions` and enforces `0700` permissions on that directory. The same release also hardens git package source path handling so managed clone paths remain inside their intended install roots.

Recommendations

Upgrade to [@earendil-works/pi-coding-agent](https://inlinr.com/packages/@earendil-works/pi-coding-agent) version 0.78.1 or later. Users of the deprecated [@mariozechner/pi-coding-agent](https://inlinr.com/packages/@mariozechner/pi-coding-agent) package should migrate to the [@earendil-works/pi-coding-agent](https://inlinr.com/packages/@earendil-works/pi-coding-agent) package and upgrade to a fixed version.

On shared Linux hosts, avoid using temporary npm or git extension package sources with vulnerable versions. Review any third-party extensions before loading them, because pi extensions run with full access to the invoking user's account.

Workarounds

If upgrading immediately is not possible, avoid `--extension` or `-e` with npm or git package sources on shared Linux systems. As an additional mitigation for vulnerable versions, configure the process temporary directory environment to point at a directory owned by the invoking user with `0700` permissions before starting pi.

Timeline

- 2026-05-29: Report received
- 2026-06-02: Fix committed
- 2026-06-04: Fixed version 0.78.1 released
- 2026-06-08: Advisory prepared for publication

Credits

Reported by Paul Urian and Cosmin Alexa of CrowdStrike.

## How it is exploited

Exploitable with local access, with a low-privilege account and a user to do something.

- **Confidentiality**: high
- **Integrity**: high
- **Availability**: high

CVSS:3.1/​AV:L/​AC:L/​PR:L/​UI:R/​S:U/​C:H/​I:H/​A:H

## References

- [Reference](https://github.com/earendil-works/pi/security/advisories/GHSA-jfgx-wxx8-mp94 "https://github.com/earendil-works/pi/security/advisories/GHSA-jfgx-wxx8-mp94")  
github.com/earendil-works/pi/security/advisorie…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-54328 "https://nvd.nist.gov/vuln/detail/CVE-2026-54328")  
nvd.nist.gov/vuln/detail/CVE-2026-54328
- [Pull request](https://github.com/earendil-works/pi/pull/5345 "https://github.com/earendil-works/pi/pull/5345")  
#5345
- [Fix commit](https://github.com/earendil-works/pi/commit/a98e087e5d08ea2a536bf73dbb0aebb87c3ef72e "https://github.com/earendil-works/pi/commit/a98e087e5d08ea2a536bf73dbb0aebb87c3ef72e")  
a98e087
- [Fix commit](https://github.com/earendil-works/pi/commit/ea3465a8e371a12d0167a06b60f93878e3a3df44 "https://github.com/earendil-works/pi/commit/ea3465a8e371a12d0167a06b60f93878e3a3df44")  
ea3465a
- [Package](https://github.com/earendil-works/pi "https://github.com/earendil-works/pi")  
github.com/earendil-works/pi
- [Reference](https://github.com/earendil-works/pi/releases/tag/v0.78.1 "https://github.com/earendil-works/pi/releases/tag/v0.78.1")  
github.com/earendil-works/pi/releases/tag/v0.78…

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
