CVE-2026-90618

7.3

GH05TCREW · PentestAgent

GH05TCREW PentestAgent allows remote OS command injection via the LocalRuntime.execute_command function, which executes unvalidated shell commands generated by an LLM.

Executive summary

The GH05TCREW PentestAgent is vulnerable to remote command injection, allowing an attacker to execute arbitrary code on the host machine with the privileges of the operator.

Vulnerability

The application utilizes the LocalRuntime component to execute shell commands via asyncio.create_subprocess_shell without any validation, sandboxing, or filesystem isolation. An unauthenticated remote attacker can trigger this vulnerability by injecting malicious instructions into target system outputs (such as HTTP responses), which are then processed by the LLM and executed directly on the host system.

Business impact

Successful exploitation leads to full remote code execution on the machine running the PentestAgent. This grants an attacker the ability to access local credentials, modify sensitive system files, establish persistence, or move laterally within the internal network. Given the CVSS score of 7.3, this represents a high-severity risk that could lead to complete system compromise and significant data loss.

Remediation

Immediate Action: Switch from the default LocalRuntime to the DockerRuntime by using the --docker flag, which provides containerized isolation for command execution.

Proactive Monitoring: Review system logs for unusual shell command executions, specifically monitoring for commands involving network utilities like curl, wget, or nc, and modifications to sensitive directories like ~/.ssh or ~/.bashrc.

Compensating Controls: If usage of the local runtime is strictly required, ensure the agent is executed within a restricted environment using security tools such as AppArmor or seccomp profiles to limit filesystem and network access.

Exploitation status

Public Exploit Available: Yes, a published proof-of-concept exists in the researcher's write-up provided in the official GitHub issue tracker.

Analyst recommendation

Users must immediately transition to the DockerRuntime to mitigate the risk of host-level compromise. Since a permanent patch in the form of updated code is currently pending, operational changes to the execution environment are the only effective method to prevent unauthorized command execution until the vendor releases a hardened version of the LocalRuntime.

More GH05TCREW CVEs

History

  1. Disclosed CVE record published
  2. Collected by CVE Brief via github
  3. Analyst report written
  4. Published in the daily brief high section

Sources

Originally found and disclosed by ez-lbz (VulDB User), with VulDB CNA Team (coordinator), per the CVE Program record.