# CVE-2026-25723: Claude Code Vulnerable to Command Injection via Piped sed Command Bypasses File Write Restrictions

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-02-06T17:52:59.028Z
- Modified: 2026-06-17T10:25:06.450Z
- Also known as: GHSA-mhg7-666j-cqg4
- Weaknesses: CWE-20, CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Claude Code is an agentic coding tool. Prior to version 2.0.55, Claude Code failed to properly validate commands using piped sed operations with the echo command, allowing attackers to bypass file write restrictions. This vulnerability enabled writing to sensitive directories like the .claude folder and paths outside the project scope. Exploiting this required the ability to execute commands through Claude Code with the "accept edits" feature enabled. This issue has been patched in version 2.0.55.

(As written by CVE List.)

## Affected

- anthropics claude-code: < 2.0.55
- @anthropic-ai/claude-code (npm): before 2.0.55
- anthropic claude_code: before 2.0.55

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/anthropics/claude-code/security/advisories/GHSA-mhg7-666j-cqg4> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25723> (advisory)
- <https://github.com/anthropics/claude-code> (package)

## Sources

- CVE List: [CVE-2026-25723](https://www.cve.org/CVERecord?id=CVE-2026-25723), CVE Terms of Use, modified 2026-02-06
- GitHub Advisory Database: [GHSA-mhg7-666j-cqg4](https://github.com/advisories/GHSA-mhg7-666j-cqg4), CC-BY-4.0, modified 2026-02-06
- NVD: [CVE-2026-25723](https://nvd.nist.gov/vuln/detail/CVE-2026-25723), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25723 · Whole record: https://cve.day/CVE-2026-25723.json · Rebuilt by cve.day 2026-11-25T22:59:13.562Z
