← back
CVE-2025-9810

TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes

CVSS 6.8 MEDIUMEPSS 0.1%CWE-367
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:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
Affected products
antirez · linenoise

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →