CVE-2025-9810

6.8 MEDIUM
Published: September 01, 2025 Modified: December 08, 2025

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321
Source: 96148269-fe82-4198-b1bf-3a73ce8bc92e
Product
https://github.com/antirez/linenoise/pull/202
Source: 96148269-fe82-4198-b1bf-3a73ce8bc92e
Issue Tracking Third Party Advisory

2 reference(s) from NVD

Quick Stats

CVSS v3 Score
6.8 / 10.0
EPSS (Exploit Probability)
0.0%
5th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

antirez