Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2025-9810

Summary
Assigner-CyberArk
Assigner Org ID-96148269-fe82-4198-b1bf-3a73ce8bc92e
Published At-01 Sep, 2025 | 19:03
Updated At-22 Apr, 2026 | 15:06
Rejected At-
Credits

TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes

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.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:CyberArk
Assigner Org ID:96148269-fe82-4198-b1bf-3a73ce8bc92e
Published At:01 Sep, 2025 | 19:03
Updated At:22 Apr, 2026 | 15:06
Rejected At:
▼CVE Numbering Authority (CNA)
TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes

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.

Affected Products
Vendor
antirez
Product
linenoise
Modules
  • linenoiseHistorySave
Program Files
  • linenoise.c
Default Status
affected
Versions
Affected
  • 0
Problem Types
TypeCWE IDDescription
CWECWE-367CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Type: CWE
CWE ID: CWE-367
Description: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Metrics
VersionBase scoreBase severityVector
3.16.8MEDIUM
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
Version: 3.1
Base score: 6.8
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
Metrics Other Info
Impacts
CAPEC IDDescription
CAPEC-132CAPEC-132 Symlink Attack
CAPEC ID: CAPEC-132
Description: CAPEC-132 Symlink Attack
Solutions

call fchmod() on the fd instead of chmod() on the path

Configurations

Workarounds

Exploits

Credits

finder
@disconnect3d
analyst
Simcha Kosman
Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321
N/A
https://github.com/antirez/linenoise/pull/202
N/A
Hyperlink: https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321
Resource: N/A
Hyperlink: https://github.com/antirez/linenoise/pull/202
Resource: N/A
▼Authorized Data Publishers (ADP)
1. CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
2. CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L1321
N/A
https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db
N/A
Hyperlink: https://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L1321
Resource: N/A
Hyperlink: https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db
Resource: N/A
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:96148269-fe82-4198-b1bf-3a73ce8bc92e
Published At:01 Sep, 2025 | 19:15
Updated At:22 Apr, 2026 | 16:16

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Secondary3.16.8MEDIUM
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
Primary3.15.8MEDIUM
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L
Type: Secondary
Version: 3.1
Base score: 6.8
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
Type: Primary
Version: 3.1
Base score: 5.8
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L
CPE Matches

antirez
antirez
>>linenoise>>-
cpe:2.3:a:antirez:linenoise:-:*:*:*:*:*:*:*
Weaknesses
CWE IDTypeSource
CWE-367Secondary96148269-fe82-4198-b1bf-3a73ce8bc92e
CWE ID: CWE-367
Type: Secondary
Source: 96148269-fe82-4198-b1bf-3a73ce8bc92e
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://github.com/antirez/linenoise/blob/master/linenoise.c#L132196148269-fe82-4198-b1bf-3a73ce8bc92e
Product
https://github.com/antirez/linenoise/pull/20296148269-fe82-4198-b1bf-3a73ce8bc92e
Issue Tracking
Third Party Advisory
https://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L1321af854a3a-2127-422b-91ae-364da2661108
N/A
https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753dbaf854a3a-2127-422b-91ae-364da2661108
N/A
Hyperlink: https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321
Source: 96148269-fe82-4198-b1bf-3a73ce8bc92e
Resource:
Product
Hyperlink: https://github.com/antirez/linenoise/pull/202
Source: 96148269-fe82-4198-b1bf-3a73ce8bc92e
Resource:
Issue Tracking
Third Party Advisory
Hyperlink: https://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L1321
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A
Hyperlink: https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A

Change History

0
Information is not available yet

Similar CVEs

2Records found

CVE-2026-27189
Matching Score-4
Assigner-GitHub, Inc.
ShareView Details
Matching Score-4
Assigner-GitHub, Inc.
CVSS Score-6.6||MEDIUM
EPSS-0.01% / 0.25%
||
7 Day CHG~0.00%
Published-21 Feb, 2026 | 00:01
Updated-25 Feb, 2026 | 21:25
Rejected-Not Available
Known To Be Used In Ransomware Campaigns?-Not Available
KEV Added-Not Available
KEV Action Due Date-Not Available
OpenSift: Race-prone local persistence could cause state corruption/loss

OpenSift is an AI study tool that sifts through large datasets using semantic search and generative AI. Versions 1.1.2-alpha and below, use non-atomic and insufficiently synchronized local JSON persistence flows, potentially causing concurrent operations to lose updates or corrupt local state across sessions/study/quiz/flashcard/wellness/auth stores. This issue has been fixed in version 1.1.3-alpha.

Action-Not Available
Vendor-opensiftOpenSift
Product-opensiftOpenSift
CWE ID-CWE-362
Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
CWE ID-CWE-367
Time-of-check Time-of-use (TOCTOU) Race Condition
CVE-2026-35376
Matching Score-4
Assigner-Canonical Ltd.
ShareView Details
Matching Score-4
Assigner-Canonical Ltd.
CVSS Score-4.5||MEDIUM
EPSS-0.01% / 1.39%
||
7 Day CHG~0.00%
Published-22 Apr, 2026 | 16:09
Updated-04 May, 2026 | 19:06
Rejected-Not Available
Known To Be Used In Ransomware Campaigns?-Not Available
KEV Added-Not Available
KEV Action Due Date-Not Available
uutils coreutils chcon Security Bypass and Mandatory Access Control (MAC) Inconsistency via TOCTOU Race Condition

A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the chcon utility of uutils coreutils during recursive operations. The implementation resolves recursive targets using a fresh path lookup (via fts_accpath) rather than binding the traversal and label application to the specific directory state encountered during traversal. Because these operations are not anchored to file descriptors, a local attacker with write access to a directory tree can exploit timing-sensitive rename or symbolic link races to redirect a privileged recursive relabeling operation to unintended files or directories. This vulnerability breaks the hardening expectations for SELinux administration workflows and can lead to the unauthorized modification of security labels on sensitive system objects.

Action-Not Available
Vendor-uutilsUutils
Product-coreutilscoreutils
CWE ID-CWE-367
Time-of-check Time-of-use (TOCTOU) Race Condition
Details not found