CVE-2026-54327: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in earendil-works pi
A time-of-check to time-of-use (TOCTOU) race condition vulnerability exists in earendil-works pi versions from 0.74.0 up to 0.78.1. The issue occurs because the application briefly creates or rewrites the auth.json file with permissions based on the process umask before restricting it to owner-only permissions. This could potentially expose API keys and OAuth credentials during that window. The vulnerability is fixed starting from version 0.78.1. The CVSS score is low (2.2), reflecting limited impact and difficult exploitation conditions.
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 sensitive API keys and OAuth credentials. Between versions 0.74.0 and 0.78.1, the file permissions are initially set according to the process umask before being tightened to owner-only, allowing a brief window where unauthorized access might occur. This race condition could lead to unintended exposure of sensitive credentials. The issue is resolved in version 0.78.1.
Potential Impact
The vulnerability could allow an attacker with local access and the ability to race the file write operation to read sensitive API keys and OAuth credentials during the brief window when auth.json permissions are not yet restricted. The impact is limited to confidentiality (partial information disclosure) with no integrity or availability impact. The low CVSS score (2.2) reflects that exploitation requires local access, high attack complexity, and user interaction.
Mitigation Recommendations
Upgrade to earendil-works pi version 0.78.1 or later, where this race condition vulnerability is fixed. No other mitigation or workaround is indicated. Patch status is not explicitly confirmed in the advisory, but the description states the vulnerability is fixed in 0.78.1.
CVE-2026-54327: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in earendil-works pi
Description
A time-of-check to time-of-use (TOCTOU) race condition vulnerability exists in earendil-works pi versions from 0.74.0 up to 0.78.1. The issue occurs because the application briefly creates or rewrites the auth.json file with permissions based on the process umask before restricting it to owner-only permissions. This could potentially expose API keys and OAuth credentials during that window. The vulnerability is fixed starting from version 0.78.1. The CVSS score is low (2.2), reflecting limited impact and difficult exploitation conditions.
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 sensitive API keys and OAuth credentials. Between versions 0.74.0 and 0.78.1, the file permissions are initially set according to the process umask before being tightened to owner-only, allowing a brief window where unauthorized access might occur. This race condition could lead to unintended exposure of sensitive credentials. The issue is resolved in version 0.78.1.
Potential Impact
The vulnerability could allow an attacker with local access and the ability to race the file write operation to read sensitive API keys and OAuth credentials during the brief window when auth.json permissions are not yet restricted. The impact is limited to confidentiality (partial information disclosure) with no integrity or availability impact. The low CVSS score (2.2) reflects that exploitation requires local access, high attack complexity, and user interaction.
Mitigation Recommendations
Upgrade to earendil-works pi version 0.78.1 or later, where this race condition vulnerability is fixed. No other mitigation or workaround is indicated. Patch status is not explicitly confirmed in the advisory, but the description states the vulnerability is fixed in 0.78.1.
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: 06/24/2026, 14:13:32 UTC
Last updated: 06/24/2026, 14:29:06 UTC
Views: 3
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.