CVE-2025-9810

TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes

State
Published
Severity
6.8 Medium
Published
Sep 1, 2025
Updated
Apr 22, 2026
Reserved
Sep 1, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:LCyberArk

Weaknesses

  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition

Affected Products

ProductVersions
linenoiseantirez
  • 0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.