AAK-CREWAI-CVE-2026-2285-001: CrewAI JSON loader path traversal
- Severity
- HIGH
- Category
- Tool Poisoning (
tool-poisoning) - Scanner
agent_audit_kit/scanners/crewai_rce_chain.py- Auto-fixable
- No.
- SARIF name
CrewAiJsonLoaderTraversal
What it detects
JSONSearchTool(file_path=...) / JSONLoader(path=...) accepts an attacker-influenceable path without anchoring to a project root. CVE-2026-2285 (arbitrary local file read, CVSS 7.5 HIGH per NVD): untrusted JSON-loader path lets the agent read arbitrary files (chained with the other three CVEs into host RCE).
How to fix
Anchor every JSON-loader path with agent_audit_kit.sanitizers.crewai.validate_jsonloader_path(path, root=...) before passing into the tool. Calling the validator in the same function suppresses this rule.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-CREWAI-CVE-2026-2285-001
Limitations
Needs a non-constant path argument and, in the same function, one of a short list of source spellings (request.json, request.args, request.form, event, user_input, agent.kickoff(, ...). request.get_json(), or a path that arrives as a function parameter, is not a source, so the call is not reported. A Python file over 512 KB is not read.
References
- CVE: CVE-2026-2285
- OWASP Agentic Top 10: ASI02 (Tool Misuse and Exploitation)
- Incidents and advisories: CERT-CC-VU-221883
- CSA AI Controls Matrix (AICM): AIS-07
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-CREWAI-CVE-2026-2285-001.md: the page then shows that text, with the registry reference appended under it.