CVE-2025-22612 Coolify Vulnerable to Private Key Enumeration on Onboarding resulting in Remote Command Execution (RCE)

Critical 10.0 Published Updated

Authenticated users can retrieve private keys due to missing authorization, enabling remote command execution on matching servers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-22612?

CVE-2025-22612 is a critical missing authorization vulnerability in coollabsio coolify, published on 24 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to version 4.0.0-beta.374, the missing authorization allows an authenticated user to retrieve any existing private keys on a coolify instance in plain text. If the server configuration of IP / domain, port (most likely 22) and user (root) matches with the victim's server configuration, then the attacker can execute arbitrary commands on the remote server. Version 4.0.0-beta.374 fixes the issue.

Weakness: CWE-862, CWE-200

Which versions are affected by CVE-2025-22612?

It affects 1 product.

Products include Coollabs Coolify.

How do I fix CVE-2025-22612?

No fix has been published for CVE-2025-22612 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2025-22612 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-22612 exists.

Sources

Also known as GHSA-wg8x-cgq4-vjxj.

Is CVE-2025-22612 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free