CVE-2025-9810 (GCVE-0-2025-9810)
Vulnerability from cvelistv5
Published
2025-09-01 19:03
Modified
2025-09-02 16:13
Severity ?
VLAI Severity ?
EPSS score ?
CWE
- CWE-367 - Time-of-check Time-of-use (TOCTOU) Race Condition
Summary
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.
References
{ "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" } ], "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": "\u003cspan style=\"background-color: rgb(255, 255, 255);\"\u003eTOCTOU \u003c/span\u003e\u003cspan style=\"background-color: rgb(255, 255, 255);\"\u003e\u0026nbsp;in \u003c/span\u003e\u003ccode\u003elinenoiseHistorySave\u003c/code\u003e\u003cspan style=\"background-color: rgb(255, 255, 255);\"\u003e\u0026nbsp;in \u003c/span\u003e\u003ccode\u003elinenoise\u003c/code\u003e\u003cspan style=\"background-color: rgb(255, 255, 255);\"\u003e\u0026nbsp;allows local attackers to overwrite arbitrary files and change permissions via a symlink race between \u003c/span\u003e\u003ccode\u003efopen(\"w\")\u003c/code\u003e\u003cspan style=\"background-color: rgb(255, 255, 255);\"\u003e\u0026nbsp;on the history path and subsequent \u003c/span\u003e\u003ccode\u003echmod()\u003c/code\u003e\u003cspan style=\"background-color: rgb(255, 255, 255);\"\u003e\u0026nbsp;on the same path.\u003c/span\u003e" } ], "value": "TOCTOU \u00a0in linenoiseHistorySave\u00a0in linenoise\u00a0allows local attackers to overwrite arbitrary files and change permissions via a symlink race between fopen(\"w\")\u00a0on the history path and subsequent chmod()\u00a0on 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\u003cbr\u003e" } ], "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": "2025-09-02T16:13:46.132Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1", "vulnerability-lookup:meta": { "nvd": "{\"cve\":{\"id\":\"CVE-2025-9810\",\"sourceIdentifier\":\"96148269-fe82-4198-b1bf-3a73ce8bc92e\",\"published\":\"2025-09-01T19:15:32.573\",\"lastModified\":\"2025-09-02T15:55:25.420\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"TOCTOU \u00a0in linenoiseHistorySave\u00a0in linenoise\u00a0allows local attackers to overwrite arbitrary files and change permissions via a symlink race between fopen(\\\"w\\\")\u00a0on the history path and subsequent chmod()\u00a0on the same path.\"}],\"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}]},\"weaknesses\":[{\"source\":\"96148269-fe82-4198-b1bf-3a73ce8bc92e\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-367\"}]}],\"references\":[{\"url\":\"https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321\",\"source\":\"96148269-fe82-4198-b1bf-3a73ce8bc92e\"},{\"url\":\"https://github.com/antirez/linenoise/pull/202\",\"source\":\"96148269-fe82-4198-b1bf-3a73ce8bc92e\"}]}}", "vulnrichment": { "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2025-9810\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-09-02T16:13:30.664402Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-09-02T16:13:43.003Z\"}}], \"cna\": {\"title\": \"TOCTOU race in Linenoise enables arbitrary file overwrite and permission changes\", \"source\": {\"discovery\": \"UNKNOWN\"}, \"credits\": [{\"lang\": \"en\", \"type\": \"finder\", \"value\": \"@disconnect3d\"}, {\"lang\": \"en\", \"type\": \"analyst\", \"value\": \"Simcha Kosman\"}], \"impacts\": [{\"capecId\": \"CAPEC-132\", \"descriptions\": [{\"lang\": \"en\", \"value\": \"CAPEC-132 Symlink Attack\"}]}], \"metrics\": [{\"format\": \"CVSS\", \"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 6.8, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"LOW\", \"privilegesRequired\": \"NONE\", \"confidentialityImpact\": \"NONE\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"GENERAL\"}]}], \"affected\": [{\"vendor\": \"antirez\", \"modules\": [\"linenoiseHistorySave\"], \"product\": \"linenoise\", \"versions\": [{\"status\": \"affected\", \"version\": \"0\"}], \"programFiles\": [\"linenoise.c\"], \"defaultStatus\": \"affected\"}], \"solutions\": [{\"lang\": \"en\", \"value\": \"call fchmod() on the fd instead of chmod() on the path\", \"supportingMedia\": [{\"type\": \"text/html\", \"value\": \"call fchmod() on the fd instead of chmod() on the path\\n\\n\u003cbr\u003e\", \"base64\": false}]}], \"references\": [{\"url\": \"https://github.com/antirez/linenoise/blob/master/linenoise.c#L1321\"}, {\"url\": \"https://github.com/antirez/linenoise/pull/202\"}], \"x_generator\": {\"engine\": \"Vulnogram 0.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"TOCTOU \\u00a0in linenoiseHistorySave\\u00a0in linenoise\\u00a0allows local attackers to overwrite arbitrary files and change permissions via a symlink race between fopen(\\\"w\\\")\\u00a0on the history path and subsequent chmod()\\u00a0on the same path.\", \"supportingMedia\": [{\"type\": \"text/html\", \"value\": \"\u003cspan style=\\\"background-color: rgb(255, 255, 255);\\\"\u003eTOCTOU \u003c/span\u003e\u003cspan style=\\\"background-color: rgb(255, 255, 255);\\\"\u003e\u0026nbsp;in \u003c/span\u003e\u003ccode\u003elinenoiseHistorySave\u003c/code\u003e\u003cspan style=\\\"background-color: rgb(255, 255, 255);\\\"\u003e\u0026nbsp;in \u003c/span\u003e\u003ccode\u003elinenoise\u003c/code\u003e\u003cspan style=\\\"background-color: rgb(255, 255, 255);\\\"\u003e\u0026nbsp;allows local attackers to overwrite arbitrary files and change permissions via a symlink race between \u003c/span\u003e\u003ccode\u003efopen(\\\"w\\\")\u003c/code\u003e\u003cspan style=\\\"background-color: rgb(255, 255, 255);\\\"\u003e\u0026nbsp;on the history path and subsequent \u003c/span\u003e\u003ccode\u003echmod()\u003c/code\u003e\u003cspan style=\\\"background-color: rgb(255, 255, 255);\\\"\u003e\u0026nbsp;on the same path.\u003c/span\u003e\", \"base64\": false}]}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-367\", \"description\": \"CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition\"}]}], \"providerMetadata\": {\"orgId\": \"96148269-fe82-4198-b1bf-3a73ce8bc92e\", \"shortName\": \"CyberArk\", \"dateUpdated\": \"2025-09-01T19:03:19.540Z\"}}}", "cveMetadata": "{\"cveId\": \"CVE-2025-9810\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-09-02T16:13:46.132Z\", \"dateReserved\": \"2025-09-01T18:48:53.813Z\", \"assignerOrgId\": \"96148269-fe82-4198-b1bf-3a73ce8bc92e\", \"datePublished\": \"2025-09-01T19:03:19.540Z\", \"assignerShortName\": \"CyberArk\"}", "dataType": "CVE_RECORD", "dataVersion": "5.1" } } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…