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

Published Feb 6, 2026
·
Updated

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.

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/nil221 for reporting this issue!

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
Claude Claude Code<2.0.55
npm/@anthropic-ai/claude-code<2.0.55
2.0.55
Anthropic Claude Code Node.js<2.0.55

Event History

Feb 6, 2026
CVE Published
via MITRE·05:52 PM
Data Sourced
via MITRE·05:52 PM
DescriptionWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·07:04 PM
Data Sourced
via GitHub·07:04 PM
DescriptionWeaknessAffected Software
Jun 19, 58090
Event
via FIRST·04:50 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-25723?

CVE-2026-25723 is classified as a critical vulnerability due to its potential for command injection and bypassing file write restrictions.

2

How do I fix CVE-2026-25723?

To fix CVE-2026-25723, update your Claude Code to version 2.0.55 or later, which addresses the command injection issue.

3

What software is affected by CVE-2026-25723?

CVE-2026-25723 affects Claude Code versions prior to 2.0.55.

4

Can CVE-2026-25723 allow unauthorized access to sensitive files?

Yes, CVE-2026-25723 can allow attackers to write to sensitive files by exploiting command injection vulnerabilities.

5

How does CVE-2026-25723 exploit piped sed commands?

CVE-2026-25723 exploits piped sed commands by failing to validate execution properly, allowing malicious commands to bypass security controls.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203