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.
Published: 2026-07-08
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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 repair releases that 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.

Generated by OpenCVE AI on July 26, 2026 at 18:36 UTC.

Remediation

No vendor fix or workaround currently provided.

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 until the.
  • Limit the ability to register sub‑agent apps to trusted users and consider disablingAgent RPC for non‑administrator accounts to prevent unauthorized port exposure.

Generated by OpenCVE AI on July 26, 2026 at 18:36 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

Wed, 08 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 08 Jul 2026 02:45:00 +0000

Type Values Removed Values Added
First Time appeared Coder
Coder coder
Vendors & Products Coder
Coder coder

Wed, 08 Jul 2026 01:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-08T12:51:10.411Z

Reserved: 2026-06-16T21:59:57.017Z

Link: CVE-2026-55432

cve-icon Vulnrichment

Updated: 2026-07-08T12:51:07.232Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T18:45:03Z

Weaknesses