CVE Explorer
CVE-2026-25722
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-20","description":"CWE-20: Improper Input Validation","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0489112d3743d67e70ca966387f122e4fc4e39a09786fd34d185f41c6dac7303 · sha256:f8695d1f37f6340f… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-78","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0489112d3743d67e70ca966387f122e4fc4e39a09786fd34d185f41c6dac7303 · sha256:f8695d1f37f6340f… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"product":"claude-code","vendor":"anthropics","versions":[{"status":"affected","version":"< 2.0.57"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:0489112d3743d67e70ca966387f122e4fc4e39a09786fd34d185f41c6dac7303 · sha256:f8695d1f37f6340f… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":7.7,"baseSeverity":"HIGH","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"PASSIVE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:0489112d3743d67e70ca966387f122e4fc4e39a09786fd34d185f41c6dac7303 · sha256:f8695d1f37f6340f… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
2 source assertions{"cweId":"CWE-20","description":"CWE-20: Improper Input Validation","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0489112d3743d67e70ca966387f122e4fc4e39a09786fd34d185f41c6dac7303 · sha256:f8695d1f37f6340f… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-78","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:0489112d3743d67e70ca966387f122e4fc4e39a09786fd34d185f41c6dac7303 · sha256:f8695d1f37f6340f… · /containers/cna/problemTypes/1/descriptions/0
Source references
1 source assertion{"name":"https://github.com/anthropics/claude-code/security/advisories/GHSA-66q4-vfjg-2qhh","tags":["x_refsource_CONFIRM"],"url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-66q4-vfjg-2qhh"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:0489112d3743d67e70ca966387f122e4fc4e39a09786fd34d185f41c6dac7303 · sha256:f8695d1f37f6340f… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.