Vulnerability 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 Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Antirez | Linenoise | - |
Related Weaknesses (CWE)
References
- https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321Product
- https://github.com/antirez/linenoise/pull/202Issue TrackingThird Party Advisory
- https://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e0081
- https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a464097
FAQ
What is CVE-2025-9810?
CVE-2025-9810 is a vulnerability with a CVSS score of 6.8 (MEDIUM). 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()...
How severe is CVE-2025-9810?
CVE-2025-9810 has been rated MEDIUM with a CVSS base score of 6.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-9810?
Check the references section above for vendor advisories and patch information. Affected products include: Antirez Linenoise.