Pi: Race condition in auth.json writes could expose stored credentials

Summary

CVECVE-2026-54327
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-06-23 20:16:49 UTC
Updated2026-06-23 20:16:49 UTC
DescriptionPi 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.

Risk And Classification

Primary CVSS: v3.1 2.2 LOW from [email protected]

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N

EPSS: 0.000740000 probability, percentile 0.001020000 (date 2026-06-24)

Problem Types: CWE-367 | CWE-732 | CWE-367 CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition | CWE-732 CWE-732: Incorrect Permission Assignment for Critical Resource


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary2.2LOWCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N
3.1CNADECLARED2.2LOWCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N

CVSS v3.1 Breakdown

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

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Earendil-works Pi affected >= 0.74.0, < 0.78.1 Not specified

References

ReferenceSourceLinkTags
github.com/earendil-works/pi/releases/tag/v0.78.1 [email protected] github.com
github.com/earendil-works/pi/security/advisories/GHSA-r95r-rj6r-c39x [email protected] github.com
github.com/earendil-works/pi/commit/135fb545f99106a4a249274f129b90bc0a77... [email protected] github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report