CVE-2026-90618
Received Received - Intake

Command Injection in PentestAgent

Vulnerability report for CVE-2026-90618, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-14

Last updated on: 2026-09-14

Assigner: VulDB

Description

A flaw has been found in GH05TCREW PentestAgent up to cf882dabea3ed91cef016cdd115e5426315665a2. This issue affects the function LocalRuntime.execute_command of the file runtime/runtime.py of the component LocalRuntime. Executing a manipulation can lead to os command injection. The attack may be performed from remote. The exploit has been published and may be used. The pull request to fix this issue awaits acceptance.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-14
Last Modified
2026-09-14
Generated
2026-09-14
AI Q&A
2026-09-14
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
gh05tcrew pentestagent to cf882dabea3ed91cef016cdd115e5426315665a2 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
CWE-77 The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an OS command injection flaw in GH05TCREW PentestAgent up to a specific version. It exists in the LocalRuntime.execute_command function of runtime/runtime.py. The issue allows remote attackers to execute arbitrary shell commands on the operator's machine by manipulating inputs like HTTP responses or nmap results that contain prompt-injection content. The attack leverages the fact that LocalRuntime uses asyncio.create_subprocess_shell without command validation or sandboxing.

Detection Guidance

Check for unauthorized command execution by monitoring shell history and process logs for unexpected commands. Look for commands containing 'curl', 'bash', 'nc', 'socat', or '/dev/tcp' in logs or network traffic. Inspect files like ~/.ssh/authorized_keys, /etc/cron*, /etc/passwd, /etc/shadow, or ~/.bashrc for modifications. Use 'ps aux' or 'top' to detect suspicious running processes.

Impact Analysis

If you use PentestAgent with LocalRuntime, an attacker could trick the tool into executing malicious commands on your system. This could lead to full system compromise, data theft, or installation of malware. The default runtime is LocalRuntime, so most users are exposed unless they explicitly use DockerRuntime for isolation. Attackers could exploit this via web responses, SSH banners, or DNS records.

Mitigation Strategies

Immediately switch to DockerRuntime by using the --docker flag to isolate command execution. Update to the latest version with the command validator fix. Block known malicious patterns in network traffic and disable LLM-generated shell commands until patched. Review and remove any unauthorized files or processes detected.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-90618. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart