{"id":"CVE-2026-54327","published":"2026-06-23T19:28:22Z","modified":"2026-06-26T18:09:58Z","title":"Pi: Race condition in auth.json writes could expose stored credentials","vendor":"earendil-works","product":"pi","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.2,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00093,"percentile":0.00546,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"},{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"}],"references":[{"url":"https://github.com/earendil-works/pi/security/advisories/GHSA-r95r-rj6r-c39x","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/earendil-works/pi/commit/135fb545f99106a4a249274f129b90bc0a77d347","tags":["x_refsource_MISC"]},{"url":"https://github.com/earendil-works/pi/releases/tag/v0.78.1","tags":["x_refsource_MISC"]}],"priority":{"score":1.6,"factors":[{"name":"EPSS percentile","points":0.11},{"name":"CVSS severity","points":1.54}]},"vendorSlug":"earendil-works","affectedVersions":[{"vendor":"earendil-works","product":"pi","versions":[">= 0.74.0, < 0.78.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-26T18:09:06.999786Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@mariozechner/pi-coding-agent","vulnerableRanges":[">=0.28.0, <=0.73.1"],"patched":[],"from":["GHSA-r95r-rj6r-c39x"],"provenance":"source"},{"ecosystem":"npm","package":"@earendil-works/pi-coding-agent","vulnerableRanges":[">=0.74.0, <0.78.1"],"patched":["0.78.1"],"from":["GHSA-r95r-rj6r-c39x"],"provenance":"source"}],"summary":{"text":"Pi, a minimal terminal coding harness by earendil-works, has a race condition in how it writes its auth.json file, which stores API keys and OAuth credentials in versions 0.74.0 through 0.78.1. An attacker with local access and low privileges, where a user must also interact with the affected process, could read credentials during the brief window when the file exists with umask-derived permissions before it is restricted to owner-only access.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:23:52Z"},"euvd":{"id":"EUVD-2026-38582","exploited":false,"provenance":"source"}}