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…

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

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

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: 06/24/2026, 14:13:32 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 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.

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: 06/24/2026, 14:13:32 UTC

Last updated: 06/24/2026, 14:29:06 UTC

Views: 3

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