CVE-2026-54327: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in earendil-works pi
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.
AI Analysis
Technical Summary
The vulnerability CVE-2026-54327 in earendil-works pi is a TOCTOU race condition affecting the file write path for auth.json, which stores API keys and OAuth credentials. Between versions 0.74.0 and 0.78.0, the file could briefly have permissions derived from the process umask, potentially exposing sensitive credentials before permissions are tightened to owner-only. This race condition could allow local attackers with limited privileges to access sensitive authentication data during the window when permissions are not yet restrictive. The vulnerability is resolved in version 0.78.1.
Potential Impact
The impact is limited to a brief exposure of sensitive API keys and OAuth credentials stored in auth.json due to improper file permission handling during file writes. The CVSS score of 2.2 (low) reflects that exploitation requires local access with low privileges and user interaction, and the confidentiality impact is limited. There is no impact on integrity or availability.
Mitigation Recommendations
Upgrade earendil-works pi to version 0.78.1 or later where this race condition is fixed. Since the vendor advisory indicates the issue is resolved in 0.78.1, applying this official fix fully mitigates the vulnerability. No other specific mitigations are indicated.
CVE-2026-54327: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in earendil-works pi
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 v3.1
Score 2.2low
Affected software
pkg:github/earendil-works/piRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-54327 in earendil-works pi is a TOCTOU race condition affecting the file write path for auth.json, which stores API keys and OAuth credentials. Between versions 0.74.0 and 0.78.0, the file could briefly have permissions derived from the process umask, potentially exposing sensitive credentials before permissions are tightened to owner-only. This race condition could allow local attackers with limited privileges to access sensitive authentication data during the window when permissions are not yet restrictive. The vulnerability is resolved in version 0.78.1.
Potential Impact
The impact is limited to a brief exposure of sensitive API keys and OAuth credentials stored in auth.json due to improper file permission handling during file writes. The CVSS score of 2.2 (low) reflects that exploitation requires local access with low privileges and user interaction, and the confidentiality impact is limited. There is no impact on integrity or availability.
Mitigation Recommendations
Upgrade earendil-works pi to version 0.78.1 or later where this race condition is fixed. Since the vendor advisory indicates the issue is resolved in 0.78.1, applying this official fix fully mitigates the vulnerability. No other specific mitigations are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-12T18:42:02.224Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3be5f1eed863c81ef0adc6
Added to database: 06/24/2026, 14:13:05 UTC
Last enriched: 07/01/2026, 22:29:06 UTC
Last updated: 08/08/2026, 12:41:11 UTC
Views: 87
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.