CVE-2026-54327

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

State
Published
Severity
2.2 Low
Published
Jun 23, 2026
Updated
Jun 26, 2026
Reserved
Jun 12, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.12.2 LowCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:NGitHub_M

Weaknesses

  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
  • CWE-732 Incorrect Permission Assignment for Critical Resource

Affected Products

ProductVersions
piearendil-works
  • >= 0.74.0, < 0.78.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.