What’s Vulnerable › Vulnerabilities
CVE-2025-9810: TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes
- Severity: medium (CVSS 5.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-09-01 · updated 2026-06-17
- Weakness: CWE-367
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.
Affected products
- antirez linenoise: all versions
References
- https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321
- https://github.com/antirez/linenoise/pull/202
- https://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L1321
- https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db
Get alerted when CVE-2025-9810 or the next vulnerability affects your stack