Skip to content

Privilege Escalation resulting in Remote Command Execution (RCE)

Critical
andrasbacsai published GHSA-9w72-9qww-qj6g Jan 24, 2025

Package

coolify (coollabsio)

Affected versions

< v4.0.0-beta.361

Patched versions

v4.0.0-beta.361

Description

The missing authorization allows any authenticated user to escalate his or any other team members privileges to any role, including the owner role. He's also able to kick every other member out of the team, including admins and owners.
This allows the attacker to access the Terminal feature and execute remote commands.

PoC

App\Livewire\Team\Member::makeReadonly();
App\Livewire\Team\Member::makeAdmin();
App\Livewire\Team\Member::makeOwner();
App\Livewire\Team\Member::remove();

Severity

Critical

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

CVE ID

CVE-2025-22611

Weaknesses

Credits