{
 "public_id": "AIR-2025-0079",
 "incident_id": "2025-08-claude-code-inverseprompt",
 "date_disclosed": "2025-08-05",
 "date_occurred": null,
 "title": "InversePrompt: path-restriction bypass and command injection in Claude Code",
 "class": "responsible_disclosure",
 "attack_surface": "coding_agent",
 "initial_vector": "malicious_prompt_or_repo_content",
 "agent_capability_abused": [
  "shell_execution",
  "filesystem_access",
  "command_allowlisting"
 ],
 "target_product": "Claude Code",
 "target_vendor": "Anthropic",
 "autonomy_level": "copilot_with_approval",
 "impact_realized": false,
 "impact_type": [
  "remote_code_execution",
  "unauthorized_file_access"
 ],
 "blast_radius": "Claude Code before v0.2.111 (path bypass) and before v1.0.20 (command injection)",
 "cve": [
  "CVE-2025-54794",
  "CVE-2025-54795"
 ],
 "taxonomy": {
  "owasp_asi": [
   "ASI04",
   "ASI05"
  ],
  "mitre_atlas": [],
  "labels": [
   "prefix_path_validation_flaw",
   "command_injection",
   "allowlist_bypass",
   "sandbox_escape"
  ]
 },
 "defense_present": "working-directory containment plus a whitelist of pre-approved commands",
 "defense_bypassed": true,
 "fix_shipped": "v0.2.111 (canonical path comparison) and v1.0.20 (input sanitization and granular command validation)",
 "primary_sources": [
  "https://cymulate.com/blog/cve-2025-547954-54795-claude-inverseprompt/"
 ],
 "verified_quote": "Improper input sanitization in how Claude Code handles whitelisted commands",
 "confidence": "high",
 "notes": "Elad Beber, Cymulate. CVE-2025-54794 (CVSS 7.7) defeats a naive startsWith prefix check with a sibling directory sharing the approved prefix. CVE-2025-54795 (CVSS 8.7) breaks out of the whitelisted 'echo' command to run arbitrary shell with no user confirmation. Named 'InversePrompt' because Claude itself was used to reverse-engineer its own guardrails.",
 "risk_category": "security_fraud",
 "risk_secondary": [],
 "risk_subcategory": "Remote Code Execution & Sandbox Escape",
 "risk_sub_secondary": [],
 "ai_entity": "generative",
 "agency": "agent_acted",
 "agency_debatable": false,
 "agency_reason": "the agent executed commands past its path restriction",
 "vector_family": "malicious_component",
 "vector_detail": "malicious_prompt_or_repo_content",
 "guardrail_kind": [
  "human_approval"
 ],
 "guardrail_outcome": "silent",
 "xrefs": {
  "aiid": [],
  "atlas": [],
  "cve": [
   "CVE-2025-54794",
   "CVE-2025-54795"
  ],
  "ghsa": []
 },
 "primary_asi": "ASI04",
 "agent_framework": "claude_code",
 "model_provider": "anthropic",
 "model_name": "",
 "detection_mechanism": "unknown",
 "tool_access": "unknown",
 "financial_loss_band": "unknown",
 "eai_category": "privilege_escalation",
 "eai_domain": "access_control_and_permissions",
 "eai_secondary": [],
 "eai_reason": "subcategory: Remote Code Execution & Sandbox Escape",
 "asi_curated": [],
 "asi_scope": "in_scope",
 "asi_provenance": "rule",
 "asi_reason": "ASI04 (vector_family=malicious_component); ASI05 (impact=code_exec)",
 "submitted_by": "EAI Internal"
}