CVE-2025-9810 TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes
Local attackers can exploit a race condition in Linenoise to overwrite arbitrary files and modify permissions via symlink attacks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-9810?
CVE-2025-9810 is a medium-severity vulnerability in antirez linenoise, published on 1 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-367
Which versions are affected by CVE-2025-9810?
It affects 1 product.
Products include Antirez Linenoise.
How do I fix CVE-2025-9810?
No fix has been published for CVE-2025-9810 yet. Limit exposure of the affected software until one is available.
Is CVE-2025-9810 being exploited?
There is no known exploitation of CVE-2025-9810 in the wild and no public exploit code.
Sources
Also known as GHSA-rj4f-7f4c-6qh7.