{"id":"CVE-2025-9810","details":"TOCTOU  in linenoiseHistorySave in linenoise allows local attackers to overwrite arbitrary files and change permissions via a symlink race between fopen(\"w\") on the history path and subsequent chmod() on the same path.","modified":"2026-04-10T05:37:53.160728Z","published":"2025-09-01T19:15:32.573Z","references":[{"type":"WEB","url":"https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321"},{"type":"REPORT","url":"https://github.com/antirez/linenoise/pull/202"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/antirez/linenoise","events":[{"introduced":"0"},{"last_affected":"80fd0569d166cd32886a640e58f3bf292807a3c0"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"1.0"}]}}],"versions":["1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-9810.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L"}]}