Files
vuln-osv/data/Go/GHSA-jqj2-x4c5-jfxm.json
T

1 line
3.6 KiB
JSON

{"schema_version":"1.9.0","id":"GHSA-jqj2-x4c5-jfxm","published":"2026-07-06T21:09:11Z","modified":"2026-07-07T20:41:04.575762482Z","aliases":["CVE-2026-55433","GO-2026-5922"],"summary":"Coder: Devcontainer recreate endpoint missing write authorization allows read-only roles to destroy containers","details":"### Summary\n\nThe devcontainer recreate endpoint relied on route middleware that checked only `ActionRead` on the workspace and, unlike the sibling delete endpoint, performed no `ActionUpdate` check before triggering the destructive rebuild.\n\n> **Note:** Exploitation requires an existing low-privilege role with access to the target workspace.\n\n### Impact\n\nAny authenticated principal with read-only workspace access, such as a Template Admin or Org Template Admin, could recreate a devcontainer, destroying uncommitted in-container state and, if called repeatedly, denying service. This is an authorization bypass leading to data loss and denial of service.\n\n### Patches\n\nThe fix adds an explicit `ActionUpdate` authorization check before the agent is dialed like the delete endpoint.\n\nThe fix was backported to all supported release lines:\n\n| Release line | Patched version |\n|---|---|\n| 2.34 | [v2.34.2](https://github.com/coder/coder/releases/tag/v2.34.2) |\n| 2.33 | [v2.33.8](https://github.com/coder/coder/releases/tag/v2.33.8) |\n| 2.32 | [v2.32.7](https://github.com/coder/coder/releases/tag/v2.32.7) |\n| 2.29 (ESR) | [v2.29.17](https://github.com/coder/coder/releases/tag/v2.29.17) |\n\n### Workarounds\n\nNone.\n\n### Resources\n\n- Fix: #25812\n\n### Credits\n\nCoder would like to thank Anthropic's Security Team (ANT-2026-22454) for independently disclosing this issue!","affected":[{"package":{"name":"github.com/coder/coder/v2","ecosystem":"Go","purl":"pkg:golang/github.com/coder/coder/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.34.0"},{"fixed":"2.34.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-jqj2-x4c5-jfxm/GHSA-jqj2-x4c5-jfxm.json"}},{"package":{"name":"github.com/coder/coder/v2","ecosystem":"Go","purl":"pkg:golang/github.com/coder/coder/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.33.0"},{"fixed":"2.33.8"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-jqj2-x4c5-jfxm/GHSA-jqj2-x4c5-jfxm.json"}},{"package":{"name":"github.com/coder/coder/v2","ecosystem":"Go","purl":"pkg:golang/github.com/coder/coder/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.30.0"},{"fixed":"2.32.7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-jqj2-x4c5-jfxm/GHSA-jqj2-x4c5-jfxm.json"}},{"package":{"name":"github.com/coder/coder/v2","ecosystem":"Go","purl":"pkg:golang/github.com/coder/coder/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.29.17"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-jqj2-x4c5-jfxm/GHSA-jqj2-x4c5-jfxm.json"}}],"references":[{"type":"WEB","url":"https://github.com/coder/coder/security/advisories/GHSA-jqj2-x4c5-jfxm"},{"type":"WEB","url":"https://github.com/coder/coder/pull/25812"},{"type":"PACKAGE","url":"https://github.com/coder/coder"}],"database_specific":{"cwe_ids":["CWE-862"],"github_reviewed":true,"github_reviewed_at":"2026-07-06T21:09:11Z","nvd_published_at":null,"severity":"MODERATE"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L"}]}