{"id":"GHSA-x82f-27x3-q89c","aliases":["GHSA-x82f-27x3-q89c"],"related":[],"kind":"vulnerability","state":"published","title":"OpenClaw's TOCTOU symlink race in writeFileWithinRoot could create or truncate files outside root boundaries","summary":"### Summary\nA symlink-retarget TOCTOU race in `writeFileWithinRoot` could point an attacker-controlled path alias outside the configured root between resolution and write operations.\n\n### Impact\nAffected versions could cause out-of-root write side effects (including file creation or truncation) before final boundary validation.\n\n### Fix\nRoot-scoped write flow now opens existing files without pre-truncation, creates missing files with exclusive create semantics, truncates only after post-open identity/boundary checks, and removes out-of-root artifacts when a race is detected.\n\n### Affected and Patched Versions\n- Affected: `<= 2026.2.26`\n- Patched: `2026.3.1`","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Summary\nA symlink-retarget TOCTOU race in `writeFileWithinRoot` could point an attacker-controlled path alias outside the configured root between resolution and write operations.\n\n### Impact\nAffected versions could cause out-of-root write side effects (including file creation or truncation) before final boundary validation.\n\n### Fix\nRoot-scoped write flow now opens existing files without pre-truncation, creates missing files with exclusive create semantics, truncates only after post-open identity/boundary checks, and removes out-of-root artifacts when a race is detected.\n\n### Affected and Patched Versions\n- Affected: `<= 2026.2.26`\n- Patched: `2026.3.1`","format":"markdown","source":"ghsa"}],"published":"2026-03-02T21:55:25.000Z","modified":"2026-03-04T15:17:29.322Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-59","CWE-367"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2026.3.1"}],"ecosystem":"npm","package":"openclaw","purl":"pkg:npm/openclaw","source":"ghsa"}],"references":[{"url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-x82f-27x3-q89c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/openclaw/openclaw","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x82f-27x3-q89c","url":"https://github.com/advisories/GHSA-x82f-27x3-q89c","licence":"CC-BY-4.0","modified":"2026-03-04T15:17:29.322Z"}],"updatedAt":"2026-11-25T22:56:46.991Z"}