CVE-2026-55432

Coder's sub-agent app registration bypasses template port-sharing policy enforcement

Published Jul 8, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
Coder allows organizations to provision remote development environments via Terraform. Prior to versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2, the `CreateSubAgent` RPC did not validate a requested app sharing level against the template's `MaxPortSharingLevel` before persisting workspace apps, letting a workspace owner exceed the administrator's configured maximum. Exploitation requires the ability to register sub-agent apps in a workspace the attacker controls. The fix in versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2clamps the sub-agent app sharing level to the template's `MaxPortSharingLevel`. As a workaround, disable wildcard app hostnames (`CODER_WILDCARD_ACCESS_URL`) to block subdomain-based app routing.

Analysis

AI-generated

Technical impact

Coder's CreateSubAgent RPC allowed a user with the ability to register sub‑agent apps in a workspace to create apps that bypassed the workspace template’s MaxPortSharingLevel, enabling the owner of the workspace to expose more ports than an administrator intended. This flaw aligns with CWE‑862 and results in unauthorized port sharing, potentially exposing services that should be restricted to a narrower set of ports. The vulnerability can be exploited without compromising the entire platform; it only requires authorized access to register sub‑agent apps within a target workspace.

Affected Systems

platform running versions prior to 2.29.7, 2.32.7, 2.33.8, or 2.34.2 that do not enforce the MaxPortSharingLevel constraint for new sub‑agent apps.

Risk and Exploitability

The CVSS score of 5.4 indicates a moderate impact, and the EPSS score is less than 1 %, suggesting that the vulnerability is rarely exploited in the wild. It is not listed in the CISA KEV catalog. An attacker must possess workspace‑level permissions sufficient to register sub‑agent apps; the exploit is carried out via the CreateSubAgent RPC within the authenticated workspace context, making the attack vector an authenticated privilege escalation within a managed workspace.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Coder platform to version 2.29.7 or later (including 2.32.7, 2.33.8, and 2.34.2) to enforce MaxPortSharingLevel during sub‑agent app registration.
  • Disable wildcard app hostnames temporarily by setting the CODER_WILDCARD_ACCESS_URL configuration variable to false, which blocks subdomain‑based app routing.
  • Restrict sub‑agent app registration permissions to trusted users to prevent unauthorized port exposure.

Generated by OpenCVE AI on August 1, 2026 at 16:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-x9qq-2qh5-8rxf Coder's sub-agent app registration bypasses template port-sharing policy enforcement
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Coder
Coder coder
Vendors & Products Coder
Coder coder
Type Values Removed Values Added
Description Coder allows organizations to provision remote development environments via Terraform. Prior to versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2, the `CreateSubAgent` RPC did not validate a requested app sharing level against the template's `MaxPortSharingLevel` before persisting workspace apps, letting a workspace owner exceed the administrator's configured maximum. Exploitation requires the ability to register sub-agent apps in a workspace the attacker controls. The fix in versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2clamps the sub-agent app sharing level to the template's `MaxPortSharingLevel`. As a workaround, disable wildcard app hostnames (`CODER_WILDCARD_ACCESS_URL`) to block subdomain-based app routing.
Title Coder's sub-agent app registration bypasses template port-sharing policy enforcement
Weaknesses CWE-862
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 8, 2026, 12:51 PM
Reserved
Jun 16, 2026, 9:59 PM
Status
Analyzed
Published
Jul 8, 2026, 1:16 AM
Modified
Jul 8, 2026, 7:40 PM