CVEvulnerability
CVE-2025-9810
5.8 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2025-09-01
- Last modified
- 2026-06-17
- Assigner
- 96148269-fe82-4198-b1bf-3a73ce8bc92e
- CVSS 3.1 (96148269-fe82-4198-b1bf-3a73ce8bc92e)
- 6.8 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
- CVSS 3.1 ([email protected])
- 5.8 MEDIUM — CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L
- Weaknesses
- CWE-367
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.
Affected configurations
• antirez linenoise
Related
Weakness · CWE (1)
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition weakness
References
- https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321 Product
- https://github.com/antirez/linenoise/pull/202 Issue Tracking, Third Party Advisory
- https://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L1321 github.com
- https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db github.com