GHSA-q728-gf8j-w49r

Suggest an improvement
Source
https://github.com/advisories/GHSA-q728-gf8j-w49r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-q728-gf8j-w49r/GHSA-q728-gf8j-w49r.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q728-gf8j-w49r
Aliases
Published
2026-02-03T19:32:01Z
Modified
2026-02-04T22:42:25Z
Severity
  • 7.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Claude Code has a Path Restriction Bypass via ZSH Clobber which Allows Arbitrary File Writes
Details

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.

Users on standard Claude Code auto-update have received this fix already. Users performing manual updates are advised to update to the latest version.

Claude Code thanks https://hackerone.com/alexbernier for reporting this issue!

Database specific
{
    "cwe_ids":  [
        "CWE-22",
        "CWE-78"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-02-03T19:32:01Z",
    "nvd_published_at":  "2026-02-03T21:16:13Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / @anthropic-ai/claude-code

Package

Name
@anthropic-ai/claude-code
View open source insights on deps.dev
Purl
pkg:npm/%40anthropic-ai/claude-code

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.0.74

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-q728-gf8j-w49r/GHSA-q728-gf8j-w49r.json"