CVE-2025-9810: TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes
Vulnerability summary
CVE-2025-9810 is a medium (CVSS 6.8) vulnerability in antirez linenoise. EPSS estimates a 0.11% chance of exploitation in the next 30 days, higher than 1.4% of scored vulnerabilities.
Not severe (CVSS 6.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 01-09-2025PublishedVulnerability first disclosed.
- 22-04-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST5.8MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:LDiffers
EPSS trend
Probability
0.11%
Chance of exploitation in the next 30 days
Percentile
1%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.11% on 21-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Antirez1 product
- linenoiseAll versions (No fix recorded) | na
1 vendor · 1 product