CVE-2025-9810 MEDIUM

CVE-2025-9810: TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes

Vendor Antirez
Product linenoise
Weakness CWE-367
Published September 1, 2025
Last update April 22, 2026

CVSS base score

6.8/10
Attack vector Local
Attack complexity Low
Privileges required None
User interaction None
Confidentiality None
Integrity High

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

September 1, 2025 CVE published
April 22, 2026 Record updated