Cluade Code has a Path Restriction Bypass via ZSH Clobber which Allows Arbitrary File Writes
Claude Code is an agentic coding tool. Prior to version 2.0.74, due to a Bash command validation flaw in parsing ZSH clobber syntax, it was possible to bypass directory restrictions and write files outside the current working directory without user permission prompts. Exploiting this required the user to use ZSH and the ability to add untrusted content into a Claude Code context window. This issue has been patched in version 2.0.74.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-24053
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 15:06 UTC · Revision 1
Source evidence
Cluade Code has a Path Restriction Bypass via ZSH Clobber which Allows Arbitrary File Writes
core-osv · Original sourcePublished 3 Feb 2026, 20:49 UTC
Claude Code is an agentic coding tool. Prior to version 2.0.74, due to a Bash command validation flaw in parsing ZSH clobber syntax, it was possible to bypass directory restrictions and write files outside the current working directory without user permission prompts. Exploiting this required the user to use ZSH and the ability to add untrusted content into a Claude Code context window. This issue has been patched in version 2.0.74.
osv:CVE-2026-24053
Complete source record
{
"id": "a8849f58b0d1acc989081636ab579ab21f588cb2703a04bd1a692be404ac3e43",
"url": "https://osv.dev/vulnerability/CVE-2026-24053",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Cluade Code has a Path Restriction Bypass via ZSH Clobber which Allows Arbitrary File Writes",
"summary": "Claude Code is an agentic coding tool. Prior to version 2.0.74, due to a Bash command validation flaw in parsing ZSH clobber syntax, it was possible to bypass directory restrictions and write files outside the current working directory without user permission prompts. Exploiting this required the user to use ZSH and the ability to add untrusted content into a Claude Code context window. This issue has been patched in version 2.0.74.",
"evidence": "osv:CVE-2026-24053",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-24053",
"aliases": [
"CVE-2026-24053",
"GHSA-q728-gf8j-w49r"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/anthropics/claude-code",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "d213a74fc8e3b6efded52729196e0c2d4c3abb3e"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.0.74"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"cpe": "cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.0.74"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.0.73"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-24053.json"
}
}
],
"modified": "2026-10-28T02:30:30.006775032Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/24xxx/CVE-2026-24053.json",
"https://github.com/anthropics/claude-code/security/advisories/GHSA-q728-gf8j-w49r",
"https://nvd.nist.gov/vuln/detail/CVE-2026-24053"
],
"provider_metadata": {
"cwe_ids": [
"CWE-22",
"CWE-79"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/24xxx/CVE-2026-24053.json"
}
},
"related_cves": [
{
"value": "CVE-2026-24053",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496664,
"published_at": "2026-02-03T20:49:59.261+00:00"
}