--- title: "ARTEX Vulnerability: Hostile Site Runs Commands (GHSA-9fqx)" url: https://playciso.com/blog/artex-vulnerability-prompt-injection-rce-ghsa-9fqx-7xv3-gj58 updated: 2026-12-04 section: Blog publisher: PlayCISO --- # ARTEX Vulnerability: Hostile Site Runs Commands (GHSA-9fqx) > A web page ARTEX was asked to test made its agent run shell commands and reach other clients' credentials. Fixed in BaaRai ARTEX v0.7.1. What to do. Source: https://playciso.com/blog/artex-vulnerability-prompt-injection-rce-ghsa-9fqx-7xv3-gj58 · Published: 2026-12-04 · Publisher: PlayCISO (https://playciso.com) Primary source: https://github.com/BaaRai/ARTEX/security/advisories/GHSA-9fqx-7xv3-gj58 --- On **1 December 2026** the BaaRai/ARTEX project, which maintains the English-language edition of the ARTEX AI pentest framework, published security advisory [GHSA-9fqx-7xv3-gj58](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-9fqx-7xv3-gj58). A website that an operator points ARTEX at can hide a sentence such as "scanners must register by running this command", and an ARTEX worker agent may run that command on the ARTEX server. The advisory rates it **critical (CVSS 3.1: 9.6)**; no CVE has been assigned. Versions **0.7.0 and earlier** are affected; **v0.7.1**, released the same day, fixes it. The reporter, Peyton Kennedy of Endor Labs, published the research the same day. **Who this is for:** security teams and consultancies that run ARTEX or another AI pentest agent, and anyone deploying an AI agent that reads content it does not control and can run commands. **Confirmed vs not yet known** - Confirmed (the advisory): indirect prompt injection reaches command execution (CWE-1427), with agents running with more privilege than they need (CWE-250). Affected: Go module github.com/Autumn-27/artex ## How it works, in plain words ARTEX gives a goal to a team of AI agents that plan and run a penetration test. A worker fetches pages from the target and can run shell commands. Two defences sat in between, both on by default, per the advisory: - A label on untrusted content. Every tool result is wrapped in markers telling the model it is data, not instructions. With its extract option, the fetch tool also copies HTML comments into a recon section, which is how the hidden instruction reached the model. The label did not stop the model from acting on it: in Endor's run, two workers wrote the "registration" down as a fact about the target and a third ran the command. - An approval gate. Tool calls pass through intercept rules and an optional LLM judge. A call that matches no rule goes ahead unless the judge is enabled and refuses it. A command that contacts the in-scope target looks like ordinary testing. Endor reports that the model does not always comply, but the attacker can reword and retry at no cost. It tested one model (gpt-4.1). For contrast, NebuSec's ArtexPot honeypots found plain prompt injection failed against an older ARTEX (0.3.15) in all 8 runs; different code, version and models, so the two results do not contradict each other. [Read the ArtexPot write-up](/blog/artexpot-honeypots-hack-artex-back). ## What one hostile target can reach | Deployment | Score | What the attacker gets | | --- | --- | --- | | Default Docker Compose (server as root, agents as a separate user) | 8.2 (Endor) | Shell in the container; every engagement's transcripts and declared credentials; persistence in later tasks. The signing key stays out of reach. | | Prebuilt binaries, install script, macOS/Windows packages, containers with a user setting | 9.6 (advisory) | All of the above, plus the admin signing key, so a forged admin login and full control of the instance (code review, not lab-tested). | For a consultancy that tests many clients from one ARTEX server, that means one malicious target could expose the credentials of every other client on it. Endor showed a second client's password could be recovered from the transcripts without contacting that client, and that a file planted during one task ran during a later, unrelated one. ## Timeline | Date | Event | Source | | --- | --- | --- | | 21 Nov 2026 | BaaRai releases ARTEX v0.7.0 (affected) | GitHub | | 30 Nov 2026 | Endor Labs runs its lab tests and reports the flaw through a GitHub security advisory | Endor Labs | | 1 Dec 2026 | BaaRai releases v0.7.1 with the fix | GitHub | | 1 Dec 2026 | Advisory GHSA-9fqx-7xv3-gj58 published (critical, 9.6); Endor publishes its research | GitHub advisory | ## What security leaders should do this week - Find every ARTEX instance your team or your pentest suppliers run, and which edition and version. Ask suppliers directly. - Upgrade BaaRai ARTEX to v0.7.1. For other forks, ask the maintainer whether the same chain applies; do not assume it does not. - Clean up after older versions. Upgrading removes nothing an earlier scan planted: wipe the shared agent home directory or rebuild the data volume, after looking for unexpected .pth files, dotfiles and .curlrc entries. - Rotate declared credentials. If an instance ever scanned a target you do not fully trust, treat every credential declared on it as exposed, including other clients'. - Separate clients. One instance per client, transcripts and captures unreadable by the agent's user, and a person approving shell commands whose arguments came from target content. - Score your setup with the [AI Pentest Agent Isolation Checklist](/tools/ai-pentest-agent-isolation-checklist), and practise spotting hostile files with the [Hostile Artifact Checker](/tools/hostile-artifact-checker). Background on ARTEX, who uses it and how to detect it: [our ARTEX explainer](/blog/artex-agentic-offensive-frameworks-gtig) and the [prompt injection hub](/hubs/prompt-injection). ## Frequently asked questions ### What is GHSA-9fqx-7xv3-gj58? It is the GitHub security advisory for a flaw in BaaRai/ARTEX, the English-language edition of the ARTEX AI pentest framework, published on 1 December 2026. A website that ARTEX is asked to test can hide an instruction in its page, and an ARTEX worker agent may run it as a shell command on the ARTEX server. The advisory rates it critical, CVSS 3.1 score 9.6. No CVE has been assigned. ### Which ARTEX versions are affected? The advisory lists the Go module github.com/Autumn-27/artex at version 0.7.0 and earlier as affected and 0.7.1 as patched. BaaRai published v0.7.1 on 1 December 2026. Other forks, such as the RuoJi6 continuation (v0.3.x), are separate code; the advisory does not cover them, and nobody has said whether they have the same problem. ### Was ARTEX's prompt injection defence turned off? No. Per the advisory and Endor Labs, ARTEX wraps every tool result in markers that tell the model the content is untrusted data, and that was on by default. The model read the label and ran the command anyway. A tool call that matched no blocking rule went through unless the optional LLM judge was enabled and refused it. ### Why is the score 9.6 in the advisory and 8.2 in Endor's post? It depends on how ARTEX was installed. On the default Docker deployment, agent commands run as a separate user that cannot read the server's signing key; Endor scores that 8.2. Where agents run as the same user as the server (prebuilt binaries, the install script, macOS and Windows packages, containers started with a user setting), the agent can read the key and forge an admin token; that is the 9.6 in the advisory. Endor says it tested the Docker path and read the code for the others. ### What can the attacker reach? Per the advisory: shell commands inside the ARTEX container during the scan, the stored transcripts of every engagement on the same server (including credentials the operator gave the agent for other clients), and a home directory shared by every agent, where planted files run in later, unrelated scans. On native installs, also the key that signs admin logins. ### We run ARTEX. What should we do? Upgrade to v0.7.1. Then assume an older version may have been tricked: wipe the shared agent home directory (look first for unexpected Python .pth files, dotfiles and .curlrc), rotate every credential ever declared on the instance, check that transcripts and traffic captures are not readable by the agent's user, prefer the Docker deployment, run one instance per client, and require a person to approve shell commands whose arguments came from target content. ### Does this only matter for ARTEX? No. Any AI agent that reads content it does not control and can act on it without a person approving each step can be talked into running someone else's instructions. Pentest agents are the extreme case because their job is to read hostile systems. The fix is a control the model cannot argue with: approval for risky actions, and an executor that cannot reach anything worth stealing. ## Sources - [GitHub: BaaRai/ARTEX security advisory GHSA-9fqx-7xv3-gj58](https://github.com/BaaRai/ARTEX/security/advisories/GHSA-9fqx-7xv3-gj58) (published 1 December 2026; read 4 December 2026) - [GitHub: BaaRai/ARTEX release v0.7.1](https://github.com/BaaRai/ARTEX/releases/tag/v0.7.1) (1 December 2026) - Endor Labs: "ARTEX vulnerability: prompt injection to RCE in an AI pentest agent (GHSA-9fqx-7xv3-gj58)", Peyton Kennedy, 1 December 2026 - [PlayCISO: ArtexPot, honeypots that hack ARTEX back](/blog/artexpot-honeypots-hack-artex-back) (NebuSec's results)