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.
Metrics
CVSS 3.1 5.8/10
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:LWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| antirez | linenoise | 0 |
References
- https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321Product
- https://github.com/antirez/linenoise/pull/202Issue Tracking, Third Party Advisory
- https://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L1321
- https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db
Timeline
- Published
- Sep 1, 2025
- Last modified
- Jun 17, 2026
- NVD status
- Modified