# CAI find_file Agent Tool has Command Injection Vulnerability Through Argument Injection

Advisory record · `GHSA-jfpc-wj3m-qw2m`

- **Identifiers:** `GHSA-jfpc-wj3m-qw2m` · `CVE-2026-25130` · `PYSEC-2026-303`
- **State:** Confirmed
- **Severity:** CVSS 9.7 Critical
- **Critical:** Yes: CVSS 9+
- **Weakness (CWE):** [CWE-78](https://cwe.mitre.org/data/definitions/78.html)
- **Tags:** [Command injection](https://agentprime.io/advisories/tag/command-injection.md)
- **Published:** 30 Jan 2026
- **Updated:** 27 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 30 Jan 2026, 20:38 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.7: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `cai-framework` (PyPI): affected `<=0.5.10`; no fixed version yet

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The cai-framework PyPI package, versions up to and including 0.5.10, has a command injection flaw in its find_file agent tool, where user-controlled arguments are passed to a shell via subprocess with shell=True. An attacker could use prompt injection, such as hidden instructions on a webpage the agent reads, to make the agent call find_file with a crafted -exec argument and run arbitrary commands on the host without user approval. The source says a patch exists in the project repository but was not yet published to PyPI, and no fixed PyPI version is listed.

Written 31 Oct 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.7 Critical, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0091, the 60th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:07 UTC: First seen by agentprime
- 31 Oct 2026, 14:07 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-jfpc-wj3m-qw2m)

## Sources

- [GitHub Advisory Database: GHSA-jfpc-wj3m-qw2m](https://github.com/advisories/GHSA-jfpc-wj3m-qw2m)
- [OSV: GHSA-jfpc-wj3m-qw2m](https://osv.dev/vulnerability/GHSA-jfpc-wj3m-qw2m)
- <https://github.com/aliasrobotics/cai/security/advisories/GHSA-jfpc-wj3m-qw2m>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25130>
- <https://github.com/aliasrobotics/cai/commit/e22a1220f764e2d7cf9da6d6144926f53ca01cde>
- <https://github.com/aliasrobotics/cai>
- <https://github.com/aliasrobotics/cai/blob/559de8fcbc2b44f3b0360f35ffdc2bb975e7d7e4/src/cai/tools/reconnaissance/filesystem.py#L60>
- <https://github.com/pypa/advisory-database/tree/main/vulns/cai-framework/PYSEC-2026-303.yaml>
- <https://pypi.org/project/cai-framework>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-jfpc-wj3m-qw2m>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-jfpc-wj3m-qw2m/>. Everything for agents: <https://agentprime.io/llms.txt>.
