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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.7
- **CVSS:** 9.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 2.76% (percentile 87, 2026-11-28)
- **CWE:** CWE-77
- **Aliases:** GHSA-4c65-9gqf-4w8h, PYSEC-2026-302
- **Published:** 2025-12-09T22:47:32.000Z
- **Modified:** 2026-10-08T10:10:00.227Z

## Who should check

- Projects that depend on PyPI package cai-framework (\<= 0.5.9)
- Anyone running aliasrobotics cai \<= 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.

## Affected and fixed versions

- PyPI `cai-framework`: affected \<= 0.5.9; fixed no fix listed yet (osv)
- aliasrobotics cai: \<= 0.5.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-67511. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-67511.md
Affected: cai-framework <= 0.5.9
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for cai-framework (PyPI), aliasrobotics cai: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-67511 being exploited?

There is no confirmed exploitation: CVE-2025-67511 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.76% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-67511?

Critical: CVSS 9.7 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-67511?

cai-framework \<= 0.5.9.

### Is there a fix for CVE-2025-67511?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-67511?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/aliasrobotics/cai/security/advisories/GHSA-4c65-9gqf-4w8h>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-67511>
- vendor: <https://github.com/advisories/GHSA-4c65-9gqf-4w8h>
- patch: <https://github.com/aliasrobotics/cai/commit/09ccb6e0baccf56c40e6cb429c698750843a999c>
- exploit: <https://www.hacktivesecurity.com/blog/2025/12/10/cve-2025-67511-tricking-a-security-ai-agent-into-pwning-itself>
- other: <https://github.com/aliasrobotics/cai>
- other: <https://pypi.org/project/cai-framework>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-67511>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-4c65-9gqf-4w8h> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-302> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-67511> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-67511>
