{
 "public_id": "AIR-2026-0167",
 "incident_id": "2026-07-openai-codex-gitpwned-git-show",
 "date_disclosed": "2026-07-20",
 "date_occurred": null,
 "title": "GitPwned: git show is on Codex CLI's safe-command allowlist, but --output writes arbitrary content to arbitrary paths",
 "class": "responsible_disclosure",
 "attack_surface": "coding_agent",
 "initial_vector": "indirect_prompt_injection_documentation",
 "agent_capability_abused": [
  "allowlisted_command_execution",
  "arbitrary_file_write"
 ],
 "target_product": "OpenAI Codex CLI",
 "target_vendor": "OpenAI",
 "autonomy_level": "semi_autonomous",
 "impact_realized": false,
 "impact_type": [
  "remote_code_execution"
 ],
 "blast_radius": "Codex CLI users below v0.95.0 processing untrusted documentation",
 "cve": [
  "GHSA-w5fx-fh39-j5rw"
 ],
 "taxonomy": {
  "owasp_asi": [
   "ASI01",
   "ASI04",
   "ASI05"
  ],
  "mitre_atlas": [],
  "labels": [
   "allowlist_bypass",
   "argument_injection",
   "git_config_write",
   "delayed_execution"
  ]
 },
 "defense_present": "safe-command allowlist; model refusal",
 "defense_bypassed": true,
 "fix_shipped": "patched 2026-02-04 in Codex CLI v0.95.0 (GHSA-w5fx-fh39-j5rw, CVSS 8.6)",
 "primary_sources": [
  "https://www.pillar.security/blog/gitpwned-allowlist-to-rce"
 ],
 "verified_quote": "Commands aren't inherently safe or dangerous; invocations are. git show HEAD is harmless. git show --output=.git/config HEAD can write attacker-controlled content to a sensitive file.",
 "confidence": "high",
 "notes": "Pillar Security (Ariel Fogel), Day 5 of the 'Week of Sandbox Escapes'. Reported 2026-01-07, patched 2026-02-04, published 2026-07-20. Execution lands when the user later runs git diff. Also documents that model refusal is not a control: 'Model refusal is probabilistic, not deterministic.'",
 "risk_category": "security_fraud",
 "risk_secondary": [],
 "risk_subcategory": "Prompt Injection",
 "risk_sub_secondary": [
  "Remote Code Execution & Sandbox Escape"
 ],
 "ai_entity": "generative",
 "agency": "agent_acted",
 "agency_debatable": false,
 "agency_reason": "the agent used an allowlisted git show --output to write arbitrary files",
 "vector_family": "indirect_prompt_injection",
 "vector_detail": "indirect_prompt_injection_documentation",
 "guardrail_kind": [
  "permission_scope"
 ],
 "guardrail_outcome": "silent",
 "xrefs": {
  "aiid": [],
  "atlas": [],
  "cve": [],
  "ghsa": [
   "GHSA-w5fx-fh39-j5rw"
  ]
 },
 "primary_asi": "ASI01",
 "agent_framework": "codex_cli",
 "model_provider": "openai",
 "model_name": "",
 "detection_mechanism": "external_researcher",
 "tool_access": "unknown",
 "financial_loss_band": "unknown",
 "eai_category": "privilege_escalation",
 "eai_domain": "access_control_and_permissions",
 "eai_secondary": [
  "confused_deputy"
 ],
 "eai_reason": "impact rule: privilege_escalation",
 "asi_curated": [
  "ASI01",
  "ASI04"
 ],
 "asi_scope": "in_scope",
 "asi_provenance": "curated_plus_rule",
 "asi_reason": "curated: ASI01,ASI04 | added ASI05 (impact=code_exec)",
 "submitted_by": "EAI Internal"
}