Home
MEDIUM: 6.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:LDefault status
affected
Any version
affected
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.
Problem types
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Product status
Any version
Credits
@disconnect3d
Simcha Kosman
References
github.com/antirez/linenoise/blob/master/linenoise.c
github.com/antirez/linenoise/pull/202