CVE-2026-54327 Details
Description
Pi is a minimal terminal coding harness. From 0.74.0 until 0.78.1, Pi stored API keys and OAuth credentials in auth.json. A race condition in the file write path could briefly create or rewrite this file with permissions derived from the process umask before tightening the file to owner-only permissions. This vulnerability is fixed in 0.78.1.
A race condition vulnerability has been identified in Pi, a minimal terminal coding harness, affecting versions 0.74.0 prior to 0.78.1. The issue arises in the file write process for storing API keys and OAuth credentials in auth.json. Due to the race condition, the file could be briefly created or overwritten with permissions based on the process umask, before being restricted to owner-only access. This vulnerability could allow local users to read the file and access sensitive credentials before the permissions were tightened.
Users can upgrade to Pi version 0.78.1 or later, which addresses the vulnerability by ensuring that auth.json is created with owner-only permissions. Those still using the deprecated @mariozechner/pi-coding-agent package should migrate to @earendil-works/pi-coding-agent and install version 0.78.1 or later. After upgrading, it's recommended to rotate any credentials that may have been exposed on multi-user systems.
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 26, 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/135fb545f99106a4a249274f129b90bc0a77d347 | [email protected] | Source CodeVendor |
| https://github.com/earendil-works/pi/releases/tag/v0.78.1 | [email protected] | Release NotesVendor |
| https://github.com/earendil-works/pi/security/advisories/GHSA-r95r-rj6r-c39x | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
| CWE-732 | Incorrect Permission Assignment for Critical Resource | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| earendil-works/pi | >= 0.74.0, < 0.78.1 (semver) |
CPE
Remediation
| |
| mariozechner/pi | >= 0.28.0, <= 0.73.1 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jun 26, 2026 | CVE Modified | CISA-ADP |
| Jun 23, 2026 | New CVE Received | [email protected] |
Volerion