CVE-2025-9810
Antirez Linenoise vulnerability
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
Linenoise. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Antirez Linenoise runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/antirez/linenoise/pull/202 · Third Party Advisory
- github.com/antirez/linenoise/blob/master/linenoise.c#L1321
- github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L13
- github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db
- nvd.nist.gov/vuln/detail/CVE-2025-9810
- cve.org/CVERecord?id=CVE-2025-9810
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.