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-02 Sep, 2025 | 16:13
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:02 Sep, 2025 | 16:13
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)
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
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:08 Dec, 2025 | 15:27

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>>1.0
cpe:2.3:a:antirez:linenoise:1.0:*:*:*:*:*:*:*
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
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

Change History

0
Information is not available yet

Similar CVEs

1Records 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% / 1.98%
||
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
Details not found