CVE-2025-9810: antirez linenoise · Time-of-check Time-of-use (TOCTOU) Race Condition
Affects antirez linenoiseSource CVE Database V5
Not known to be exploited · CVSS 6.8 Medium.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 1% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:LExploitation evidence
Disclosed: evidence found.
CVE published 1 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| antirez linenoise | Affected
| Fixed in– |
AI-suggested
Until a fix is released, restricting local access to trusted users and avoiding use of vulnerable linenoise versions in sensitive environments is recommended.
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.
References
- github.com/antirez/linenoise/blob/master/linenoise.c (opens in a new tab)
- github.com/antirez/linenoise/pull/202 (opens in a new tab)
- github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c (opens in a new tab)
- github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db (opens in a new tab)