{"id":"CVE-2026-41389","aliases":["CVE-2026-41389","GHSA-mr34-9552-qr95"],"related":[],"kind":"vulnerability","state":"published","title":"OpenClaw 2026.4.7 < 2026.4.15 - Arbitrary File Read via Unvalidated Tool-Result Media Paths","summary":"OpenClaw versions 2026.4.7 before 2026.4.15 fail to enforce local-root containment on tool-result media paths, allowing arbitrary local and UNC file access. Attackers can craft malicious tool-result media references to trigger host-side file reads or Windows network path access, potentially disclosing sensitive files or exposing credentials.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenClaw versions 2026.4.7 before 2026.4.15 fail to enforce local-root containment on tool-result media paths, allowing arbitrary local and UNC file access. Attackers can craft malicious tool-result media references to trigger host-side file reads or Windows network path access, potentially disclosing sensitive files or exposing credentials.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nWebchat tool-result media normalization could pass local and UNC-style file paths into the host-side media embedding path without applying the configured local-root containment policy.\n\n## Impact\n\nA crafted tool-result media reference could cause the host to attempt local file reads or Windows UNC/network path access while preparing webchat media blocks. This could disclose allowed host files or trigger network credential exposure on affected Windows deployments. Severity remains medium because exploitation depends on a tool-result media path reaching the webchat embedding path, but the sink is a host-side file read before the user sees the rendered result.\n\n## Affected versions\n\n- Affected: `>= 2026.4.7, < 2026.4.15`\n- Patched: `2026.4.15`\n\n## Fix\n\nOpenClaw `2026.4.15` hardens the webchat media path and the shared media resolver. Remote-host `file://` URLs and Windows network paths are rejected before filesystem access, and audio embedding now enforces configured `localRoots` containment before `stat` or read operations.\n\nVerified in `v2026.4.15`:\n\n- `src/gateway/server-methods/chat-webchat-media.ts` uses safe file-URL parsing, rejects Windows network paths, and calls `assertLocalMediaAllowed` before probing local audio files.\n- `src/media/web-media.ts` rejects remote-host `file://` URLs, Windows network paths, and local-root bypasses on the shared media path.\n- `src/gateway/server-methods/chat-webchat-media.test.ts` covers both remote-host `file://` rejection and local-root denial before filesystem access.\n\nFix commits included in `v2026.4.15` and absent from `v2026.4.14`:\n\n- `1470de5d3e0970856d86cd99336bb8ada3fe87da` via PR #67293\n- `6e58f1f9f54bca1fea1268ec0ee4c01a2af03dde` via PR #67298\n- `52ef42302ead9e183e6c8810e0a04ee4ef8ae9fc` via PR #67303 as defense-in-depth for trusted media passthrough anchoring\n\nThanks to @Kherrisan for reporting this issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones de OpenClaw 2026.4.7 anteriores a la 2026.4.15 no logran aplicar la contención de raíz local en las rutas de medios de resultados de herramientas, lo que permite el acceso arbitrario a archivos locales y UNC. Los atacantes pueden elaborar referencias maliciosas a medios de resultados de herramientas para desencadenar lecturas de archivos del lado del host o acceso a rutas de red de Windows, lo que podría revelar archivos sensibles o exponer credenciales.","source":"nvd"}],"published":"2026-04-17T22:33:09.000Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","score":5.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","score":5.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-22","CWE-73"],"affected":[{"ranges":[{"type":"semver","introduced":"2026.4.7","fixed":"2026.4.15","status":"affected"},{"type":"semver","version":"2026.4.15","status":"unaffected"}],"vendor":"OpenClaw","product":"OpenClaw","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2026.4.7","status":"affected","fixed":"2026.4.15"}],"ecosystem":"npm","package":"openclaw","purl":"pkg:npm/openclaw","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2026.4.7","fixed":"2026.4.15"}],"vendor":"openclaw","product":"openclaw","cpe":"cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-mr34-9552-qr95","tags":["patch","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/openclaw/openclaw/commit/1470de5d3e0970856d86cd99336bb8ada3fe87da","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/openclaw/openclaw/commit/6e58f1f9f54bca1fea1268ec0ee4c01a2af03dde","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/openclaw/openclaw/commit/52ef42302ead9e183e6c8810e0a04ee4ef8ae9fc","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/openclaw-arbitrary-file-read-via-unvalidated-tool-result-media-paths","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41389","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/openclaw/openclaw/pull/67293","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/openclaw/openclaw/pull/67298","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/openclaw/openclaw/pull/67303","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/openclaw/openclaw","tags":["package"],"sources":["ghsa"]}],"credits":["Zou Dikai (@Kherrisan)"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-04-20T18:04:52.711Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41389","url":"https://www.cve.org/CVERecord?id=CVE-2026-41389","licence":"CVE Terms of Use","modified":"2026-04-20T18:05:03.103Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mr34-9552-qr95","url":"https://github.com/advisories/GHSA-mr34-9552-qr95","licence":"CC-BY-4.0","modified":"2026-05-08T01:41:28.957Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41389","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41389","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.055Z","epss":{"score":0.00268,"percentile":0.20257,"date":"2026-12-01T12:00:22.000Z"}}