CVE Explorer
CVE-2025-9810
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"affected","modules":["linenoiseHistorySave"],"product":"linenoise","programFiles":["linenoise.c"],"vendor":"antirez","versions":[{"status":"affected","version":"0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:1a658353b09ed57b806b91f62140e1e2730cc66fb7414ff52c099ae82f2d3434 · sha256:bf54214fe222d90d… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":6.8,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:1a658353b09ed57b806b91f62140e1e2730cc66fb7414ff52c099ae82f2d3434 · sha256:bf54214fe222d90d… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-367","description":"CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:1a658353b09ed57b806b91f62140e1e2730cc66fb7414ff52c099ae82f2d3434 · sha256:bf54214fe222d90d… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"url":"https://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L1321"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1a658353b09ed57b806b91f62140e1e2730cc66fb7414ff52c099ae82f2d3434 · sha256:bf54214fe222d90d… · /containers/adp/1/references/0
{"url":"https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1a658353b09ed57b806b91f62140e1e2730cc66fb7414ff52c099ae82f2d3434 · sha256:bf54214fe222d90d… · /containers/cna/references/0
{"url":"https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1a658353b09ed57b806b91f62140e1e2730cc66fb7414ff52c099ae82f2d3434 · sha256:bf54214fe222d90d… · /containers/adp/1/references/1
{"url":"https://github.com/antirez/linenoise/pull/202"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1a658353b09ed57b806b91f62140e1e2730cc66fb7414ff52c099ae82f2d3434 · sha256:bf54214fe222d90d… · /containers/cna/references/1
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.