Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 100%

CVE-2026-54327: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in earendil-works pi

0
Low
VulnerabilityCVE-2026-54327cvecve-2026-54327cwe-367cwe-732
Published: 06/23/2026 (06/23/2026, 19:28:22 UTC)
Source: CVE Database V5
Vendor/Project: earendil-works
Product: 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

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N

Affected software

GitHub Actionsmore threats →ai
earendil-works/pi
pkg:github/earendil-works/pi
Affected versions
>=0.74.0 <0.78.1

Run 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

AILast updated: 07/01/2026, 22:29:06 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses