{"id":"CVE-2025-9810","aliases":["CVE-2025-9810"],"related":[],"kind":"vulnerability","state":"published","title":"TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2025-09-01T19:03:19.540Z","modified":"2026-06-17T10:09:49.110Z","severity":{"scorer":"CyberArk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"CyberArk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-367"],"affected":[{"ranges":[{"version":"0","status":"affected"}],"vendor":"antirez","product":"linenoise","source":"cvelist"},{"ranges":[],"vendor":"antirez","product":"linenoise","cpe":"cpe:2.3:a:antirez:linenoise:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://github.com/antirez/linenoise/pull/202","tags":["issue-tracking","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L1321","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db","tags":[],"sources":["cvelist","nvd"]}],"credits":["@disconnect3d","Simcha Kosman"],"assigner":"CyberArk","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-02T16:13:30.664Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-9810","url":"https://www.cve.org/CVERecord?id=CVE-2025-9810","licence":"CVE Terms of Use","modified":"2026-04-22T15:06:11.462Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-9810","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9810","licence":"Public domain","modified":"2026-06-17T10:09:49.110Z"}],"updatedAt":"2026-11-25T22:59:03.975Z","epss":{"score":0.00119,"percentile":0.01948,"date":"2026-12-01T12:00:22.000Z"}}