Claude Code is an agentic coding tool. Prior to version 2.0.57, Claude Code failed to properly validate directory changes when combined with write operations to protected folders. By using the cd command to navigate into sensitive directories like .claude, it was possible to bypass write protection and create or modify files without user confirmation. Reliably exploiting this required the ability to add untrusted content into a Claude Code context window. This issue has been patched in version 2.0.57.
Cite this page
CVE-2026-25722. CVEDatabase.com. Retrieved 1 May 2026. https://cvedatabase.com/cve/CVE-2026-25722
Use CWE-20, Anthropic vendor hub and Claude Code product page to widen CVE-2026-25722 into its surrounding weakness, vendor, and product context.
Compare it with CVE-2026-35022, CVE-2026-35020 and CVE-2026-35021 for nearby disclosures in the same product family.