{"api_version":"1","generated_at":"2026-04-23T12:01:24+00:00","cve":"CVE-2025-9810","urls":{"html":"https://cve.report/CVE-2025-9810","api":"https://cve.report/api/cve/CVE-2025-9810.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-9810","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-9810"},"summary":{"title":"TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes","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.","state":"PUBLISHED","assigner":"CyberArk","published_at":"2025-09-01 19:15:32","updated_at":"2026-04-22 16:16:52"},"problem_types":["CWE-367","CWE-367 CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"5.8","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","baseScore":5.8,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"HIGH","availabilityImpact":"LOW"}},{"version":"3.1","source":"96148269-fe82-4198-b1bf-3a73ce8bc92e","type":"Secondary","score":"6.8","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","baseScore":6.8,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"LOW"}},{"version":"3.1","source":"CNA","type":"CVSS","score":"6.8","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","data":{"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"}}],"references":[{"url":"https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db","name":"https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/antirez/linenoise/pull/202","name":"https://github.com/antirez/linenoise/pull/202","refsource":"96148269-fe82-4198-b1bf-3a73ce8bc92e","tags":["Issue Tracking","Third Party Advisory"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321","name":"https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321","refsource":"96148269-fe82-4198-b1bf-3a73ce8bc92e","tags":["Product"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L1321","name":"https://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L1321","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-9810","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9810","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"antirez","product":"linenoise","version":"affected","platforms":[]}],"timeline":[],"solutions":[{"source":"CNA","title":"","value":"call fchmod() on the fd instead of chmod() on the path","time":"","lang":"en"}],"workarounds":[],"exploits":[],"credits":[{"source":"CNA","value":"@disconnect3d","lang":"en"},{"source":"CNA","value":"Simcha Kosman","lang":"en"}],"nvd_cpes":[{"cve_year":"2025","cve_id":"9810","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"antirez","cpe5":"linenoise","cpe6":"-","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2025","cve_id":"9810","cve":"CVE-2025-9810","epss":"0.000120000","percentile":"0.016060000","score_date":"2026-04-22","updated_at":"2026-04-23 00:03:15"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2025-9810","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2025-09-02T16:13:30.664402Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2025-09-02T16:13:46.132Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"},{"providerMetadata":{"dateUpdated":"2026-04-22T15:06:11.462Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"url":"https://github.com/antirez/linenoise/blob/4111f1d6cd29e136b4e86a25d1dd859a1e00813b/linenoise.c#L1321"},{"url":"https://github.com/antirez/linenoise/commit/f2558e1e588b1ba384ec73a2cf5c9a46409753db"}],"title":"CVE Program Container","x_generator":{"engine":"ADPogram 0.0.1"}}],"cna":{"affected":[{"defaultStatus":"affected","modules":["linenoiseHistorySave"],"product":"linenoise","programFiles":["linenoise.c"],"vendor":"antirez","versions":[{"status":"affected","version":"0"}]}],"credits":[{"lang":"en","type":"finder","value":"@disconnect3d"},{"lang":"en","type":"analyst","value":"Simcha Kosman"}],"descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<span style=\"background-color: rgb(255, 255, 255);\">TOCTOU </span><span style=\"background-color: rgb(255, 255, 255);\">&nbsp;in </span><code>linenoiseHistorySave</code><span style=\"background-color: rgb(255, 255, 255);\">&nbsp;in </span><code>linenoise</code><span style=\"background-color: rgb(255, 255, 255);\">&nbsp;allows local attackers to overwrite arbitrary files and change permissions via a symlink race between </span><code>fopen(\"w\")</code><span style=\"background-color: rgb(255, 255, 255);\">&nbsp;on the history path and subsequent </span><code>chmod()</code><span style=\"background-color: rgb(255, 255, 255);\">&nbsp;on the same path.</span>"}],"value":"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."}],"impacts":[{"capecId":"CAPEC-132","descriptions":[{"lang":"en","value":"CAPEC-132 Symlink Attack"}]}],"metrics":[{"cvssV3_1":{"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"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-367","description":"CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2025-09-01T19:03:19.540Z","orgId":"96148269-fe82-4198-b1bf-3a73ce8bc92e","shortName":"CyberArk"},"references":[{"url":"https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321"},{"url":"https://github.com/antirez/linenoise/pull/202"}],"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"call fchmod() on the fd instead of chmod() on the path\n\n<br>"}],"value":"call fchmod() on the fd instead of chmod() on the path"}],"source":{"discovery":"UNKNOWN"},"title":"TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes","x_generator":{"engine":"Vulnogram 0.2.0"}}},"cveMetadata":{"assignerOrgId":"96148269-fe82-4198-b1bf-3a73ce8bc92e","assignerShortName":"CyberArk","cveId":"CVE-2025-9810","datePublished":"2025-09-01T19:03:19.540Z","dateReserved":"2025-09-01T18:48:53.813Z","dateUpdated":"2026-04-22T15:06:11.462Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-09-01 19:15:32","lastModifiedDate":"2026-04-22 16:16:52","problem_types":["CWE-367","CWE-367 CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition"],"metrics":{"cvssMetricV31":[{"source":"96148269-fe82-4198-b1bf-3a73ce8bc92e","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","baseScore":6.8,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"LOW"},"exploitabilityScore":2.5,"impactScore":4.2},{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","baseScore":5.8,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"HIGH","availabilityImpact":"LOW"},"exploitabilityScore":1,"impactScore":4.7}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:antirez:linenoise:-:*:*:*:*:*:*:*","matchCriteriaId":"8EFEA3D5-8B76-4608-86D1-9E30AB6C8D79"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"9810","Ordinal":"1","Title":"TOCTOU race in Linenoise enables arbitrary file overwrite and pe","CVE":"CVE-2025-9810","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"9810","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"TOCTOU race in Linenoise enables arbitrary file overwrite and pe"}]}}}