Semaphore
Semaphore UI: Manager-to-owner privilege escalation via custom-role slug collision
Semaphore UI is a web interface for managing DevOps tools. Prior to 2.18.19 and from 2.19.0-alpha3 until 2.19.5-beta5, ProjectMiddleware and GetProjectOrGlobalRoleBySlug allow a project manager to use POST /api/project/{id}/roles to create a custom manager role with permission bitmask 15, overriding the built-in manager permissions and granting CanUpdateProject and CanManageProjectUsers owner capabilities. This issue is fixed in versions 2.18.19 and 2.19.5-beta5.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.8high · scored by CNA · CWE-269
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
semaphoreui semaphore
- < 2.18.19
- >= 2.19.0-alpha3, < 2.19.5-beta5
Fixed in 2.18.19, 2.19.5-beta5
Mitigation
Upgrade semaphore to 2.18.19 or 2.19.5-beta5 or later.
References
- Vendor advisory github.com/semaphoreui/semaphore/security/advi…
- Patch github.com/semaphoreui/semaphore/commit/1c4bb6…
- Patch github.com/semaphoreui/semaphore/commit/bb2a4e…
2 more
- Release notes github.com/semaphoreui/semaphore/releases/tag/…
- Release notes github.com/semaphoreui/semaphore/releases/tag/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.