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.
{
"cna_assigner": "CyberArk",
"cwe_ids": [
"CWE-367"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9810.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"last_affected": "0"
}
],
"source": "AFFECTED_FIELD"
}
]
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-9810.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"265348205535378370319795114444392726630",
"273281227715678456856085506334798903171",
"34349218758613275275793102682184965558",
"220831549205519235080045685807123472005"
],
"threshold": 0.9
},
"id": "CVE-2025-9810-5a66a9a5",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db",
"target": {
"file": "linenoise.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "239340519119530426938189686411231833220",
"length": 369
},
"id": "CVE-2025-9810-c54a8de3",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db",
"target": {
"file": "linenoise.c",
"function": "linenoiseHistorySave"
}
}
]
"2026-08-12T15:31:10Z"