CVE-2026-24887: Claude Code has a Command Injection in find Command Bypasses User Approval Prompt

Published Feb 3, 2026
·
Updated

Claude Code is an agentic coding tool. Prior to version 2.0.72, due to an error in command parsing, it was possible to bypass the Claude Code confirmation prompt to trigger execution of untrusted commands through the find command. 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.72.

Other sources

Due to an error in command parsing, it was possible to bypass the Claude Code confirmation prompt to trigger execution of untrusted commands through the find command. Reliably exploiting this required the ability to add untrusted content into a Claude Code context window.

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

Claude Code thanks https://hackerone.com/alexbernier for reporting this issue!

GitHub

Affected Software

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

Event History

Feb 3, 2026
Advisory Published
via GitHub·07:33 PM
Data Sourced
via GitHub·07:33 PM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·08:50 PM
Data Sourced
via MITRE·08:50 PM
DescriptionWeakness
Data Sourced
via NVD·09:16 PM
DescriptionSeverityWeaknessAffected Software
Jun 19, 58090
Event
via FIRST·03:59 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-24887?

CVE-2026-24887 is considered a high-severity vulnerability due to its potential for command injection.

2

How do I fix CVE-2026-24887?

To resolve CVE-2026-24887, upgrade to Claude Code version 2.0.72 or later.

3

What software is affected by CVE-2026-24887?

CVE-2026-24887 affects the @anthropic-ai/claude-code package versions prior to 2.0.72.

4

What type of vulnerability is CVE-2026-24887?

CVE-2026-24887 is a command injection vulnerability that allows execution of untrusted commands.

5

Is user approval prompt for commands bypassed in CVE-2026-24887?

Yes, CVE-2026-24887 allows the bypassing of the user approval prompt due to a flaw in command parsing.

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