AAK-AGENT-ZERO-CVE-2026-30624-PIN-001: Agent Zero 0.9.8 MCP-config RCE (CVE-2026-30624, git-only pin)
- Severity
- HIGH
- Category
- Supply Chain (
supply-chain) - Scanner
agent_audit_kit/scanners/supply_chain.py- Auto-fixable
- No.
- SARIF name
AgentZeroMcpConfigRce
What it detects
Agent Zero 0.9.8 executes the command and args of a user-supplied JSON MCP server configuration when that config is applied, without validation or restriction, so a malicious External MCP Servers entry is remote code execution with the Agent Zero process's privileges (CVE-2026-30624, CVSS 8.6; disclosed in the OX Security MCP supply-chain advisory). NVD's CPE scopes the CVE to exactly 0.9.8 and names no fixed release. Three practical notes for this pin: the repository moved from frdel/agent-zero to agent0ai/agent-zero, so both spellings are matched; the project's version scheme jumped from the 0.9.8 patch line to 1.x in March 2026 and is now on 2.x, so the floor sits at 1.0; and while agent-zero does resolve on PyPI, that distribution is an unrelated voice-agent framework, so this rule matches git references only and never the bare distribution name. The architectural class is covered separately by AAK-STDIO-001.
How to fix
Move the Agent Zero git reference to a 1.0+ tag and pin it explicitly — an untagged git+https:// or github: reference resolves to whatever HEAD serves. Independently of the version, do not let untrusted input reach the External MCP Servers configuration: its command and args are executed as given.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-AGENT-ZERO-CVE-2026-30624-PIN-001
Limitations
Reads a git reference to frdel/agent-zero or agent0ai/agent-zero (a git+https URL or github: shorthand) in the root requirements*.txt, pyproject.toml, Pipfile, package.json, .mcp.json, mcp.json, claude_desktop_config.json and lockfiles, and reports one with no tag or a tag below 1.0. An agent0ai/agent-zero image tag in a compose file or Dockerfile, a git clone in a script and a reference in a sub-directory manifest are not read. A file over 2 MB, or a lockfile over 32 MiB, is not read.
References
- CVE: CVE-2026-30624
- OWASP MCP Top 10: MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering), MCP05:2025 (Command Injection & Execution)
- OWASP Agentic Top 10: ASI04 (Agentic Supply Chain Vulnerabilities), ASI05 (Unexpected Code Execution (RCE))
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-RCE-04
- Incidents and advisories: NVD-CVE-2026-30624, OX-MCP-2026-05-01
All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-AGENT-ZERO-CVE-2026-30624-PIN-001.md: the page then shows that text, with the registry reference appended under it.