Time-of-check Time-of-use (TOCTOU) Race Condition Affecting antirez/linenoise package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-ANTIREZLINENOISE-12484244
  • published3 Sept 2025
  • disclosed1 Sept 2025
  • creditUnknown

Introduced: 1 Sep 2025

NewCVE-2025-9810  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

There is no fixed version for antirez/linenoise.

Overview

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition via the linenoiseHistorySave function. An attacker can overwrite arbitrary files or change permissions on unrelated files by exploiting a race condition between file creation and permission modification operations. This can be achieved by manipulating symbolic links during the window between file opening and permission changes, potentially disrupting system integrity and availability.

CVSS Base Scores

version 4.0
version 3.1