CVE-2026-24887: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in anthropics claude-code
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.
AI Analysis
Technical Summary
CVE-2026-24887 is an OS command injection vulnerability classified under CWE-78 and CWE-94 affecting anthropics' Claude Code, an agentic coding tool designed to assist with code generation and execution. The vulnerability arises from improper neutralization of special elements in OS commands, specifically within the parsing of the find command. Prior to version 2.0.72, Claude Code's confirmation prompt intended to prevent untrusted command execution could be bypassed due to an error in command parsing logic. This flaw allows an attacker to inject malicious commands that are executed on the underlying operating system. Successful exploitation requires the attacker to inject untrusted content into the Claude Code context window, which then gets processed without proper sanitization or validation. The vulnerability does not require privileges or authentication but does require user interaction to trigger the command execution. The CVSS 4.0 base score is 7.7, reflecting high severity with network attack vector, low attack complexity, partial attack prerequisites, and partial user interaction. The vulnerability impacts confidentiality, integrity, and availability by enabling arbitrary command execution, potentially leading to data theft, system compromise, or denial of service. The issue has been addressed in version 2.0.72 by correcting the command parsing and enforcing proper validation to prevent bypass of the confirmation prompt. No known exploits have been reported in the wild as of the publication date.
Potential Impact
For European organizations, this vulnerability poses a significant risk especially for those relying on Claude Code in their software development or automation workflows. Exploitation could lead to unauthorized execution of arbitrary commands on developer machines or build servers, potentially compromising sensitive source code, intellectual property, and internal systems. The ability to bypass confirmation prompts increases the risk of stealthy attacks. Organizations in sectors such as finance, technology, and critical infrastructure that use Claude Code could face data breaches, operational disruptions, or supply chain compromises. The vulnerability's network attack vector means attackers could exploit it remotely if they can inject untrusted content, increasing the attack surface. Given the high severity and potential for widespread impact, failure to patch could result in significant operational and reputational damage.
Mitigation Recommendations
European organizations should immediately upgrade all instances of Claude Code to version 2.0.72 or later to remediate the vulnerability. Until upgrade is possible, restrict the ability to inject untrusted content into Claude Code context windows by implementing strict input validation and sanitization controls. Limit access to Claude Code environments to trusted users and networks, employing network segmentation and access controls to reduce exposure. Monitor logs and command execution traces for unusual or unauthorized activity indicative of exploitation attempts. Educate developers and users about the risks of executing untrusted code and the importance of applying security updates promptly. Additionally, consider deploying endpoint detection and response (EDR) solutions capable of detecting anomalous command executions. Regularly review and audit software development tools for security updates and vulnerabilities to maintain a secure development environment.
Affected Countries
Germany, France, United Kingdom, Netherlands, Sweden, Finland, Ireland
CVE-2026-24887: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in anthropics claude-code
Description
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.
AI-Powered Analysis
Technical Analysis
CVE-2026-24887 is an OS command injection vulnerability classified under CWE-78 and CWE-94 affecting anthropics' Claude Code, an agentic coding tool designed to assist with code generation and execution. The vulnerability arises from improper neutralization of special elements in OS commands, specifically within the parsing of the find command. Prior to version 2.0.72, Claude Code's confirmation prompt intended to prevent untrusted command execution could be bypassed due to an error in command parsing logic. This flaw allows an attacker to inject malicious commands that are executed on the underlying operating system. Successful exploitation requires the attacker to inject untrusted content into the Claude Code context window, which then gets processed without proper sanitization or validation. The vulnerability does not require privileges or authentication but does require user interaction to trigger the command execution. The CVSS 4.0 base score is 7.7, reflecting high severity with network attack vector, low attack complexity, partial attack prerequisites, and partial user interaction. The vulnerability impacts confidentiality, integrity, and availability by enabling arbitrary command execution, potentially leading to data theft, system compromise, or denial of service. The issue has been addressed in version 2.0.72 by correcting the command parsing and enforcing proper validation to prevent bypass of the confirmation prompt. No known exploits have been reported in the wild as of the publication date.
Potential Impact
For European organizations, this vulnerability poses a significant risk especially for those relying on Claude Code in their software development or automation workflows. Exploitation could lead to unauthorized execution of arbitrary commands on developer machines or build servers, potentially compromising sensitive source code, intellectual property, and internal systems. The ability to bypass confirmation prompts increases the risk of stealthy attacks. Organizations in sectors such as finance, technology, and critical infrastructure that use Claude Code could face data breaches, operational disruptions, or supply chain compromises. The vulnerability's network attack vector means attackers could exploit it remotely if they can inject untrusted content, increasing the attack surface. Given the high severity and potential for widespread impact, failure to patch could result in significant operational and reputational damage.
Mitigation Recommendations
European organizations should immediately upgrade all instances of Claude Code to version 2.0.72 or later to remediate the vulnerability. Until upgrade is possible, restrict the ability to inject untrusted content into Claude Code context windows by implementing strict input validation and sanitization controls. Limit access to Claude Code environments to trusted users and networks, employing network segmentation and access controls to reduce exposure. Monitor logs and command execution traces for unusual or unauthorized activity indicative of exploitation attempts. Educate developers and users about the risks of executing untrusted code and the importance of applying security updates promptly. Additionally, consider deploying endpoint detection and response (EDR) solutions capable of detecting anomalous command executions. Regularly review and audit software development tools for security updates and vulnerabilities to maintain a secure development environment.
Affected Countries
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-01-27T19:35:20.528Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 698261daf9fa50a62fdf39e5
Added to database: 2/3/2026, 9:00:10 PM
Last enriched: 2/3/2026, 9:14:28 PM
Last updated: 2/3/2026, 10:08:20 PM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2026-1811: Path Traversal in bolo-blog bolo-solo
MediumCVE-2026-1341: CWE-306 Missing Authentication for Critical Function in Avation Avation Light Engine Pro
CriticalCVE-2026-25510: CWE-434: Unrestricted Upload of File with Dangerous Type in ci4-cms-erp ci4ms
CriticalCVE-2026-25509: CWE-204: Observable Response Discrepancy in ci4-cms-erp ci4ms
MediumCVE-2026-25155: CWE-352: Cross-Site Request Forgery (CSRF) in QwikDev qwik
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.