GHSA-ff64-7w26-62rf

Suggest an improvement
Source
https://github.com/advisories/GHSA-ff64-7w26-62rf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-ff64-7w26-62rf/GHSA-ff64-7w26-62rf.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-ff64-7w26-62rf
Aliases
Published
2026-02-06T19:14:33Z
Modified
2026-02-06T22:11:17.245533Z
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 Sandbox Escape via Persistent Configuration Injection in settings.json
Details

Claude Code's bubblewrap sandboxing mechanism failed to properly protect the .claude/settings.json configuration file when it did not exist at startup. While the parent directory was mounted as writable and .claude/settings.local.json was explicitly protected with read-only constraints, settings.json was not protected if it was missing. This allowed malicious code running inside the sandbox to create this file and inject persistent hooks (such as SessionStart commands) that would execute with host privileges when Claude Code was restarted.

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

Claude Code thanks hackerone.com/edbr for reporting this issue!

Database specific
{
    "nvd_published_at": "2026-02-06T18:16:00Z",
    "cwe_ids": [
        "CWE-501",
        "CWE-668"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2026-02-06T19:14:33Z"
}
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
0Unknown introduced version / All previous versions are affected
Fixed
2.1.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-ff64-7w26-62rf/GHSA-ff64-7w26-62rf.json"