CVE-2026-48739: coollabsio/coolify Auth Bypass

CVE-2026-48739

NVD

Vulnerability Summary

Summary A cross-tenant authorization bypass in `Project\Shared\Destination` Livewire allows any authenticated user on a multi-team Coolify instance to attach their own application to any Docker network or server registered anywhere on the instance — including the Coolify orchestrator host itself. On the next deploy, the attacker's container runs as root on the foreign host with shared-Docker-network access to every co-tenant container on that host. Details `Project\Shared\Destination::promote(network_id, server_id)` and `::addServer(network_id, server_id)` accept arbitrary integer IDs from the client and pass them directly to the `additional_networks()->attach(...)` relation. Neither method calls `$this->authorize()` and neither scopes the lookup via `Server::ownedByCurrentTeam()` or `StandaloneDocker::ownedByCurrentTeam()`. Affected component: - `app/Livewire/Project/Shared/Destination.php` - `promote(int $network_id, int $server_id)` — line 111 - `addServer(int $network_id, int $server_id)` — line 131 The sibling method `removeServer()` on the same component (declared at line 137, with the scope check at line 149) correctly uses `Server::ownedByCurrentTeam()->findOrFail($server_id)`. The omission in `promote()` and `addServer()` is self-evidently a bug. ```php public function addServer(int $network_id, int $server_id) { // no $this->authorize(); no ownedByCurrentTeam scoping on either argument $this->resource->additional_networks()->attach($network_id, ['server_id' => $server_id]); $this->dispatch('refresh'); } public function promote(int $network_id, int $server_id) { $main_destination = $this->resource->destination; $this->resource->update([ 'destination_id' => $network_id, 'destination_type' => StandaloneDocker::class, ]); $this->resource->additional_networks()->detach($network_id, ['server_id' => $server_id]); $this->resource->additional_networks()->attach($main_destination->id, ['server_id' => $main_destination->server->id]); // ... } ``` PoC 1. Sign in as any user on a Coolify instance that hosts at least one other team's server. 2. Open one of the attacker's own applications and navigate to its Servers (Destination) page. 3. In the browser console: ```js const c = Livewire.all().find(x => x.name === 'project.shared.destination'); await c.$wire.addServer(<target_network_id>, <target_server_id>); ``` 4. The page re-renders showing the foreign server in the attacker's application's "Additional servers" list. The owner of the target team's UI (at `/server/<server_uuid>/resources`) also now shows the attacker's application under the foreign server's Managed Resources list. 5. Deploying the application then schedules the attacker's container onto the foreign server. Confirmed on 2026-05-15 against a self-hosted v4.0.0 instance from an account that was not a member of the target team. The account successfully attached the target team's Coolify orchestrator host (`is_coolify_host: true`) to its own application. Impact Cross-team authorization bypass. Affects any Coolify deployment with two or more teams. Any authenticated user — including a freshly-registered account on any instance where `is_registration_enabled` is on — can exploit it. Resulting capability for the attacker: - On the next deploy of the attacker's application, attacker-controlled code runs as root inside a container on the foreign server, with shared-Docker-network access to every other tenant's containers on that host. - When the attached server is the Coolify orchestrator host (`is_coolify_host: true` — common on small self-hosted setups where the control plane and one managed-resource host are the same machine), the attacker has root container execution on the Coolify control plane itself. - If the instance has `is_api_enabled = true`, `GET /api/v1/applications/<uuid>` additionally reflects the foreign server's full configuration in `additional_servers[]` — Traefik config, proxy ports, healthcheck endpoints, sentinel token, IP, port, SSH user — even before any deploy is triggered. Remediation Validate both arguments before the write: ```php public function addServer(int $network_id, int $server_id) { $server = Server::ownedByCurrentTeam()->findOrFail($server_id); $network = StandaloneDocker::ownedByCurrentTeam()->findOrFail($network_id); $this->authorize('update', $this->resource); $this->resource->additional_networks()->attach($network->id, ['server_id' => $server->id]); $this->dispatch('refresh'); } ``` Mirror the existing scope check in `removeServer()`. Apply the same pattern to `promote()`. Regression test: assert that a member of team A cannot attach a server or network owned by team B to a resource in team A.
Severity Level
CRITICAL(9.9)
Published Date
Dec 1, 2026
Last Modified
Dec 1, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The system does not prevent one user from accessing another user data or record by modifying the key value identifying the data.
The software does not perform an authorization check when an actor attempts to access a resource or perform an action.
CVSS v3.1 Base Metrics — Score 9.9
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeChanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • coollabsio/coolify >= 4.0.0, < 4.1.1
Patched Versions
  • coollabsio/coolify 4.1.1

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is critical.

  1. Check whether you run coollabsio/coolify and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Dec 1, 2026Published
  • Dec 1, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new coollabsio/coolify CVEsYou are reading CVE-2026-48739. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 1, 2026 23:01 UTC