CVE-2025-64755: @anthropic-ai/claude-code has Sed Command Validation Bypass that Allows Arbitrary File Writes

Published Nov 20, 2025
·
Updated

Claude Code is an agentic coding tool. Prior to version 2.0.31, due to an error in sed command parsing, it was possible to bypass the Claude Code read-only validation and write to arbitrary files on the host system. This issue has been patched in version 2.0.31.

Other sources

Due to an error in sed command parsing, it was possible to bypass the Claude Code read-only validation and write to arbitrary files on the host system.

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

Thank you to Adam Chester - SpecterOps for reporting this issue!

GitHub

Affected Software

2 affected componentsFixes available
npm/@anthropic-ai/claude-code<2.0.31
2.0.31
anthropic Claude Code Node.js<2.0.31

Event History

Nov 20, 2025
Advisory Published
via GitHub·09:28 PM
Data Sourced
via GitHub·09:28 PM
DescriptionWeaknessAffected Software
Nov 21, 2025
CVE Published
via MITRE·01:13 AM
Data Sourced
via MITRE·01:13 AM
DescriptionWeakness
Data Sourced
via NVD·02:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 AM
Affected Software
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-2025-64755?

CVE-2025-64755 is classified as a high-severity vulnerability due to its potential for unauthorized file writes.

2

How do I fix CVE-2025-64755?

To fix CVE-2025-64755, update to version 2.0.31 of the @anthropic-ai/claude-code package.

3

What does CVE-2025-64755 affect?

CVE-2025-64755 affects the @anthropic-ai/claude-code package, specifically versions prior to 2.0.31.

4

What causes CVE-2025-64755?

CVE-2025-64755 is caused by an error in sed command parsing that allows bypassing read-only validation.

5

Who is impacted by CVE-2025-64755?

Users of the @anthropic-ai/claude-code package who perform manual updates are primarily impacted by CVE-2025-64755.

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