CVE-2025-58764: CWE-94: Improper Control of Generation of Code ('Code Injection') in anthropics claude-code
Claude Code is an agentic coding tool. Due to an error in command parsing, versions prior to 1.0.105 were vulnerable to a bypass of the Claude Code confirmation prompt to trigger execution of an untrusted command. Reliably exploiting this requires the ability to add untrusted content into a Claude Code context window. Users on standard Claude Code auto-update will have received this fix automatically. Users performing manual updates are advised to update to version 1.0.105 or the latest version.
AI Analysis
Technical Summary
CVE-2025-58764 is a high-severity vulnerability classified under CWE-94 (Improper Control of Generation of Code, commonly known as Code Injection) affecting the Anthropics product 'Claude Code', an agentic coding tool. The vulnerability arises from an error in command parsing in versions prior to 1.0.105, which allows an attacker to bypass the tool's confirmation prompt and trigger execution of untrusted commands. This means that if an attacker can inject malicious content into the Claude Code context window, they can cause the tool to execute arbitrary code without user confirmation. The vulnerability does not require any privileges or authentication (AV:N/PR:N), but does require user interaction (UI:P) to exploit, such as the user opening or interacting with a maliciously crafted context. The impact on confidentiality, integrity, and availability is high (VC:H/VI:H/VA:H), indicating that successful exploitation could lead to full compromise of the affected system. The vulnerability is network exploitable (AV:N) and has a low attack complexity (AC:L), making it relatively easy to exploit remotely if the attacker can inject content. The vendor has addressed this issue in version 1.0.105, and users with auto-update enabled should already be protected. Manual updaters are advised to upgrade immediately. No known exploits are currently reported in the wild, but the high CVSS score (8.7) and the nature of the vulnerability suggest a significant risk if exploited. The lack of patch links in the provided data suggests users should consult official Anthropics channels for updates.
Potential Impact
For European organizations, the impact of CVE-2025-58764 could be severe. Claude Code, as an agentic coding tool, is likely used in software development environments, potentially handling sensitive codebases and intellectual property. Exploitation could lead to unauthorized code execution, allowing attackers to inject malicious code, steal confidential data, disrupt development workflows, or pivot to other internal systems. This could compromise the integrity of software products, lead to data breaches, and cause operational downtime. Given the high impact on confidentiality, integrity, and availability, organizations could face regulatory consequences under GDPR if personal data is exposed. The requirement for user interaction means social engineering or phishing could be used to facilitate exploitation, increasing risk in environments where developers interact with untrusted sources or third-party code. The vulnerability's ease of exploitation and network accessibility heighten the threat landscape for European enterprises relying on Claude Code for development.
Mitigation Recommendations
European organizations should immediately verify the version of Claude Code in use and ensure it is updated to version 1.0.105 or later. For environments where automatic updates are disabled, implement strict update policies to enforce timely patching. Additionally, restrict the ability to inject untrusted content into Claude Code context windows by controlling input sources and limiting integration with untrusted third-party tools or services. Employ network segmentation and endpoint protection to detect and block suspicious command execution attempts. Educate developers about the risks of interacting with untrusted code snippets or content within Claude Code to reduce the likelihood of social engineering exploitation. Implement monitoring and logging of code execution activities within Claude Code to detect anomalous behavior promptly. Finally, coordinate with Anthropics for any further security advisories and apply any subsequent patches or mitigations recommended by the vendor.
Affected Countries
Germany, France, United Kingdom, Netherlands, Sweden, Finland, Ireland
CVE-2025-58764: CWE-94: Improper Control of Generation of Code ('Code Injection') in anthropics claude-code
Description
Claude Code is an agentic coding tool. Due to an error in command parsing, versions prior to 1.0.105 were vulnerable to a bypass of the Claude Code confirmation prompt to trigger execution of an untrusted command. Reliably exploiting this requires the ability to add untrusted content into a Claude Code context window. Users on standard Claude Code auto-update will have received this fix automatically. Users performing manual updates are advised to update to version 1.0.105 or the latest version.
AI-Powered Analysis
Technical Analysis
CVE-2025-58764 is a high-severity vulnerability classified under CWE-94 (Improper Control of Generation of Code, commonly known as Code Injection) affecting the Anthropics product 'Claude Code', an agentic coding tool. The vulnerability arises from an error in command parsing in versions prior to 1.0.105, which allows an attacker to bypass the tool's confirmation prompt and trigger execution of untrusted commands. This means that if an attacker can inject malicious content into the Claude Code context window, they can cause the tool to execute arbitrary code without user confirmation. The vulnerability does not require any privileges or authentication (AV:N/PR:N), but does require user interaction (UI:P) to exploit, such as the user opening or interacting with a maliciously crafted context. The impact on confidentiality, integrity, and availability is high (VC:H/VI:H/VA:H), indicating that successful exploitation could lead to full compromise of the affected system. The vulnerability is network exploitable (AV:N) and has a low attack complexity (AC:L), making it relatively easy to exploit remotely if the attacker can inject content. The vendor has addressed this issue in version 1.0.105, and users with auto-update enabled should already be protected. Manual updaters are advised to upgrade immediately. No known exploits are currently reported in the wild, but the high CVSS score (8.7) and the nature of the vulnerability suggest a significant risk if exploited. The lack of patch links in the provided data suggests users should consult official Anthropics channels for updates.
Potential Impact
For European organizations, the impact of CVE-2025-58764 could be severe. Claude Code, as an agentic coding tool, is likely used in software development environments, potentially handling sensitive codebases and intellectual property. Exploitation could lead to unauthorized code execution, allowing attackers to inject malicious code, steal confidential data, disrupt development workflows, or pivot to other internal systems. This could compromise the integrity of software products, lead to data breaches, and cause operational downtime. Given the high impact on confidentiality, integrity, and availability, organizations could face regulatory consequences under GDPR if personal data is exposed. The requirement for user interaction means social engineering or phishing could be used to facilitate exploitation, increasing risk in environments where developers interact with untrusted sources or third-party code. The vulnerability's ease of exploitation and network accessibility heighten the threat landscape for European enterprises relying on Claude Code for development.
Mitigation Recommendations
European organizations should immediately verify the version of Claude Code in use and ensure it is updated to version 1.0.105 or later. For environments where automatic updates are disabled, implement strict update policies to enforce timely patching. Additionally, restrict the ability to inject untrusted content into Claude Code context windows by controlling input sources and limiting integration with untrusted third-party tools or services. Employ network segmentation and endpoint protection to detect and block suspicious command execution attempts. Educate developers about the risks of interacting with untrusted code snippets or content within Claude Code to reduce the likelihood of social engineering exploitation. Implement monitoring and logging of code execution activities within Claude Code to detect anomalous behavior promptly. Finally, coordinate with Anthropics for any further security advisories and apply any subsequent patches or mitigations recommended by the vendor.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-09-04T19:18:09.500Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 68c196ac368ecf244925d85c
Added to database: 9/10/2025, 3:18:04 PM
Last enriched: 9/18/2025, 12:43:29 AM
Last updated: 10/30/2025, 2:15:28 PM
Views: 53
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-2025-43941: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Dell Unity
HighCVE-2025-10348: CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') in Eveo URVE Smart Office
MediumCVE-2025-63608: n/a
HighRussian Hackers Exploit Adaptix Multi-Platform Pentesting Tool in Ransomware Attacks
HighCVE-2025-10317: CWE-352 Cross-Site Request Forgery (CSRF) in OpenSolution Quick.Cart
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.