CVE-2025-9810

medium

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.

References

https://github.com/antirez/linenoise/pull/202

https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321

Details

Source: Mitre, NVD

Published: 2025-09-01

Updated: 2025-09-02

Risk Information

CVSS v2

Base Score: 5.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:N/I:C/A:P

Severity: Medium

CVSS v3

Base Score: 6.8

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

Severity: Medium

EPSS

EPSS: 0.00014