Skip to content
RCE Write-up Advanced

CVE-2025–64424 (Coolio) Vulnerable Docker Container with Walkth

A PHP-based platform called Coolify fails to sanitise the 'Repository URL' field, allowing command injection that leads to remote code execution. Because a helper container has the Docker socket mounted, an attacker can use that access to run commands on the host and reach a neighbouring container.

Josh Beck Follow

Published on medium.com

Project Page: https://cyberlessons101.com/challenges/flag-red74

Josh Beck, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could run commands on the host through the mounted Docker socket and reach other containers, escalating from a single input field to control beyond the application.

What the attacker needed

Access to the Repository URL field; ability to trigger a deployment

How it was found

  1. Fingerprint the target with a technology-detection scan to confirm the stack.
  2. Craft a command injection payload for the Repository URL field, using shell tricks to avoid space filters and chain commands.
  3. Trigger a deployment and observe that the first attempt fails because deployment runs in an ephemeral helper container.
  4. Abuse the Docker socket mounted in the helper container to run commands on the host.
  5. Read the flag from a neighbouring container.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The application takes text a user types into a 'Repository URL' box and passes it to a system command without cleaning it first. Special characters in that text can therefore be read as extra commands by the operating system, letting the user run their own code. The deployment step also runs inside a small temporary container that has broad access to Docker, which makes the damage worse.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Josh Beck

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.