{"id":"CVE-2026-103435","aliases":[],"summary":"Arbitrary File Write via Write-Time Symlink Following (TOCTOU) in Claude Code","published_at":"2026-10-07T12:50:02.572Z","modified_at":"2026-10-15T21:40:35Z","products":[],"rating":{"severity":"high","score":7.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0025100000202655792,"percentile":0.16664999723434448,"date":"2026-11-19T00:00:00Z"},"priority":9.2,"details":"Claude Code validated that a target file path resided within the project working directory at permission-check time, but re-resolved the path at write time without repeating that validation. This time-of-check to time-of-use (TOCTOU) gap allowed an attacker who could write to the workspace to atomically replace a project file with a symlink, causing Claude Code to follow the symlink and write its output to an arbitrary file outside the project sandbox. Exploitation required the ability to win a race condition against the write operation and write access to the shared workspace, enabling a lower-privileged attacker to redirect benign edits to sensitive files (e.g., shell configuration) in a higher-privileged session.\n\nUsers on standard Claude Code auto-update have received this fix already. Users performing manual updates are advised to update to the latest version.\n\nThank you to hackerone.com/c_h4ck_0 for reporting this issue.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"Anthropic/@anthropic-ai/claude-code","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.129"}]}],"fixed":["2.1.129"],"provider":"cvelistv5","source":"CVE-2026-103435","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.31","cpe":"cpe:/a:redhat:openshift_devspaces:3.31::el9","status":"fixed","packages":["devspaces/pluginregistry-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:90321"],"provider":"redhat-vex","source":"CVE-2026-103435"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.31","cpe":"cpe:/a:redhat:openshift_devspaces:3.31::el9","status":"not_affected","packages":["devspaces/code-rhel9","devspaces/code-sshd-rhel9","devspaces/configbump-rhel9","devspaces/dashboard-rhel9","devspaces/devspaces-operator-bundle","devspaces/devspaces-rhel9-operator","devspaces/imagepuller-rhel9","devspaces/jetbrains-ide-rhel9","devspaces/multicluster-redirector-rhel9","devspaces/oauth2-proxy-rhel9","devspaces/openvsx-rhel9","devspaces/server-rhel9","devspaces/traefik-rhel9","devspaces/udi-base-rhel9","devspaces/udi-rhel9"],"package_count":15,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-103435"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-103435","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-103435","license":"CC-BY-4.0","published_at":"2026-10-07T12:50:02.572Z","modified_at":"2026-10-07T14:39:13.225Z","summary":"Arbitrary File Write via Write-Time Symlink Following (TOCTOU) in Claude Code","details":"Claude Code validated that a target file path resided within the project working directory at permission-check time, but re-resolved the path at write time without repeating that validation. This time-of-check to time-of-use (TOCTOU) gap allowed an attacker who could write to the workspace to atomically replace a project file with a symlink, causing Claude Code to follow the symlink and write its output to an arbitrary file outside the project sandbox. Exploitation required the ability to win a race condition against the write operation and write access to the shared workspace, enabling a lower-privileged attacker to redirect benign edits to sensitive files (e.g., shell configuration) in a higher-privileged session.\n\nUsers on standard Claude Code auto-update have received this fix already. Users performing manual updates are advised to update to the latest version.\n\nThank you to hackerone.com/c_h4ck_0 for reporting this issue.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"CVE-2026-103435"}],"affected":[{"ecosystem":"CVE","package":"Anthropic/@anthropic-ai/claude-code","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.129"}]}],"fixed":["2.1.129"],"provider":"cvelistv5","source":"CVE-2026-103435","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-5j29-h97v-84ch"}]},{"provider":"redhat-vex","source_id":"CVE-2026-103435","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-103435","license":"CC-BY-4.0","published_at":"2026-10-07T12:50:02.572Z","modified_at":"2026-10-15T21:40:35Z","summary":"claude-code: claude-code: Arbitrary file write via TOCTOU race condition","details":"A flaw was found in claude-code. An attacker with write access to a shared workspace can achieve arbitrary file modification and privilege escalation by exploiting a time-of-check to time-of-use (TOCTOU) race condition. By replacing a project file with a symbolic link between the permission check and the write operation, an attacker can bypass workspace restrictions and overwrite sensitive files outside the project sandbox.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2026-103435"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-103435"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.31","cpe":"cpe:/a:redhat:openshift_devspaces:3.31::el9","status":"fixed","packages":["devspaces/pluginregistry-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:90321"],"provider":"redhat-vex","source":"CVE-2026-103435"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.31","cpe":"cpe:/a:redhat:openshift_devspaces:3.31::el9","status":"not_affected","packages":["devspaces/code-rhel9","devspaces/code-sshd-rhel9","devspaces/configbump-rhel9","devspaces/dashboard-rhel9","devspaces/devspaces-operator-bundle","devspaces/devspaces-rhel9-operator","devspaces/imagepuller-rhel9","devspaces/jetbrains-ide-rhel9","devspaces/multicluster-redirector-rhel9","devspaces/oauth2-proxy-rhel9","devspaces/openvsx-rhel9","devspaces/server-rhel9","devspaces/traefik-rhel9","devspaces/udi-base-rhel9","devspaces/udi-rhel9"],"package_count":15,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-103435"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-103435.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-103435"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2547427"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-103435"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-103435"},{"type":"WEB","url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-5j29-h97v-84ch"}]}],"references":[{"type":"WEB","url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-5j29-h97v-84ch"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-103435.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-103435"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2547427"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-103435"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-103435"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-103435","url":"https://www.cve.org/CVERecord?id=CVE-2026-103435","license":"CC-BY-4.0","modified_at":"2026-10-07T14:39:13.225Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-103435","url":"https://access.redhat.com/security/cve/CVE-2026-103435","license":"CC-BY-4.0","modified_at":"2026-10-15T21:40:35Z","relation":"self"}]}
