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