{"id":"CVE-2026-54327","summary":"Pi: Race condition in auth.json writes could expose stored credentials","details":"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.","aliases":["GHSA-r95r-rj6r-c39x"],"modified":"2026-08-12T03:51:49.074486629Z","published":"2026-06-23T19:28:22.503Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54327.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-367","CWE-732"]},"references":[{"type":"WEB","url":"https://github.com/earendil-works/pi/releases/tag/v0.78.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54327.json"},{"type":"ADVISORY","url":"https://github.com/earendil-works/pi/security/advisories/GHSA-r95r-rj6r-c39x"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54327"},{"type":"FIX","url":"https://github.com/earendil-works/pi/commit/135fb545f99106a4a249274f129b90bc0a77d347"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/earendil-works/pi","events":[{"introduced":"1eee081e29c1323c40b98db11d0a62b919831881"},{"fixed":"135fb545f99106a4a249274f129b90bc0a77d347"},{"fixed":"592c34c05643d115d6eed08a6f615999651cfaa3"}],"database_specific":{"extracted_events":[{"introduced":"0.74.0"},{"fixed":"0.78.1"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54327.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N"}]}