{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-9810","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.","descriptionLong":"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.","published":"2025-09-01T19:03:19.540Z","updated":"2026-10-28T10:46:06.356955348Z","reserved":"2025-09-01T18:48:53.813Z","status":"Modified","rejected":false,"assigner":"CyberArk","metric":{"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","rating":"medium","source":"CyberArk"},"metrics":[{"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","rating":"medium","source":"CyberArk"},{"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","rating":"medium","source":"96148269-fe82-4198-b1bf-3a73ce8bc92e"},{"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","rating":"medium","source":"NVD"},{"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","rating":"medium","source":"OSV"}],"rating":"medium","products":["antirez linenoise"],"affectedProducts":[{"vendor":"antirez","product":"linenoise","defaultStatus":"affected","versions":[{"status":"affected","version":"0"}],"platforms":[]}],"packages":[],"cwes":["CWE-367"],"aliases":[],"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://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9810.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9810","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00112,"epssPercentile":0.01432,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-9810","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9810","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-9810","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-9810","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}