{"id":"CVE-2025-9810","aliases":["EUVD-2025-26353","GHSA-rj4f-7f4c-6qh7"],"status":"published","title":"TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes","description":"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.","severity":{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00112,"percentile":0.014,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-367"],"published":"2025-09-01T19:03:19Z","modified":"2026-10-28T10:46:06Z","products":[{"vendor":"antirez","product":"linenoise"}],"references":[{"url":"https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321","tags":["Product","web"]},{"url":"https://github.com/antirez/linenoise/pull/202","tags":["Issue Tracking","Third Party Advisory","fix"]},{"url":"https://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L1321","tags":["web"]},{"url":"https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db","tags":["fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9810","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-rj4f-7f4c-6qh7"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9810.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2025-9810","title":"TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes","description":"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.","status":"published","published":"2025-09-01T19:03:19.54Z","modified":"2026-04-22T15:06:11.462Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T14:32:33.410838Z"}],"euvd":[{"id":"EUVD-2025-26353","description":"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.","status":"published","published":"2025-09-01T19:03:19Z","modified":"2026-04-22T15:06:11Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","level":"medium"}],"updated_at":"2026-11-02T19:24:20.283712Z"}],"ghsa":[{"id":"GHSA-rj4f-7f4c-6qh7","title":"TOCTOU  in linenoiseHistorySave in linenoise allows local attackers to overwrite arbitrary files...","description":"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.","status":"published","published":"2025-12-08T15:30:29Z","modified":"2026-04-22T18:31:37Z","cvss":[{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","level":"medium"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T15:07:35.199773Z"}],"nvd":[{"id":"CVE-2025-9810","description":"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.","status":"published","published":"2025-09-01T19:15:32.573Z","modified":"2026-06-17T10:09:49.11Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","level":"medium","assessor":"primary"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T14:11:26.200344Z"}],"osv":[{"id":"CVE-2025-9810","title":"TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes","description":"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.","status":"published","published":"2025-09-01T19:03:19.54Z","modified":"2026-10-28T10:46:06.356955348Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","level":"medium"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T15:44:53.490346Z"}]}}
