CVE-2026-54327
Received
Received - Intake
Pi Stored Credentials Race Condition in auth.json
Publication date: 2026-06-23
Last updated on: 2026-06-23
Assigner: GitHub, Inc.
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| earendil-works | pi-coding-agent | From 0.74.0 (inc) to 0.78.0 (inc) |
| earendil-works | pi-coding-agent | 0.78.1 |
| mariozechner | pi-coding-agent | From 0.28.0 (inc) to 0.73.1 (inc) |
| mariozechner | pi-coding-agent | 0.73.1 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-732 | The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. |
| CWE-367 | The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. |