TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| antirez | linenoise | affected |
|
No data.
| Vendor | Product | Versions |
|---|---|---|
| Linenoise Project | Linenoise | — |
Vendor Solution
call fchmod() on the fd instead of chmod() on the path
| Source | ID | Title |
|---|---|---|
EUVD |
EUVD-2025-26353 | 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. |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.112% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:antirez:linenoise:-:*:*:*:*:*:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Antirez
Antirez linenoise |
|
| CPEs | cpe:2.3:a:antirez:linenoise:1.0:*:*:*:*:*:*:* | |
| Vendors & Products |
Antirez
Antirez linenoise |
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Linenoise Project
Linenoise Project linenoise |
|
| Vendors & Products |
Linenoise Project
Linenoise Project linenoise |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes | |
| Weaknesses | CWE-367 | |
| References |
| |
| Metrics |
cvssV3_1
|