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.
Severity (CVSS)
| Base score | 2.2 |
|---|---|
| Severity | Low |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N |
| Provided by | CNA |
Weaknesses
- CWE-367 — CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
- CWE-732 — CWE-732: Incorrect Permission Assignment for Critical Resource
Affected products
| Vendor | Product | Versions |
|---|---|---|
| earendil-works | pi | >= 0.74.0, < 0.78.1 |
References
- https://github.com/earendil-works/pi/security/advisories/GHSA-r95r-rj6r-c39x (x_refsource_CONFIRM)
- https://github.com/earendil-works/pi/commit/135fb545f99106a4a249274f129b90bc0a77d347 (x_refsource_MISC)
- https://github.com/earendil-works/pi/releases/tag/v0.78.1 (x_refsource_MISC)
Generated from the official CVE List on 24 Jun 2026 09:35 UTC.