{
  "id": "CVE-2026-45311",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-45311",
  "published_at": "2026-05-28T17:32:26.95Z",
  "title": "CodeWhale: run_tests Tool Enables RCE via Malicious Repository Without Approval",
  "vendor": "Hmbown",
  "product": "CodeWhale",
  "cvss": {
    "score": 9.6,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "CodeWhale is a DeepSeek + MiMo coding agent in terminal. From 0.3.0 to 0.8.23, the run_tests tool executes cargo test in the workspace with ApprovalRequirement::Auto, meaning it runs without any user approval prompt. cargo test compiles and executes arbitrary code: test binaries, build.rs build scripts, and proc macros. While auto-approving test execution is a deliberate design choice, it creates an inconsistency in the security boundary. However, in a malicious repository, test code can execute arbitrary shell commands, exfiltrate credentials, or establish persistence with zero approval. The attack is amplified by AGENTS.md (auto-loaded into the system prompt), which can instruct the model to run tests proactively at session start. This vulnerability is fixed in 0.8.23.",
  "cwe": "CWE-94",
  "cvss_by_source": {
    "cna": 9.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Hmbown",
        "product": "CodeWhale",
        "ranges": [
          "\u003e= 0.3.0, \u003c 0.8.23"
        ],
        "fixed_in": [
          "0.8.23"
        ]
      }
    ],
    "upgrade": [
      "Upgrade CodeWhale to 0.8.23 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-wx44-2q6h-j6p8"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
