RaaX's Blog

Back

While reproducing the Dokploy/dokploy vulnerability (CVE-2026-24841), I realized that the installation script for v0.26.5 in the documentation is incorrect..

Documentation Installation Script#

Logs#

✅ Critical initialization complete
Default middlewares already exists
Network is already initilized
Migration failed Error [PostgresError]: password authentication failed for user "dokploy"
    at ignore-listed frames {
  severity_local: 'FATAL',
  severity: 'FATAL',
  code: '28P01',
  file: 'auth.c',
  line: '331',
  routine: 'auth_failed'
}
plaintext

Root cause#

The code of the Docker service on installation script:

docker service create \
      --name dokploy \
      --replicas 1 \
      --network dokploy-network \
      --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
      --mount type=bind,source=/etc/dokploy,target=/etc/dokploy \
      --mount type=volume,source=dokploy,target=/root/.docker \
      --secret source=dokploy_postgres_password,target=/run/secrets/postgres_password \
      --publish published=3000,target=3000,mode=host \
      --update-parallelism 1 \
      --update-order stop-first \
      --constraint 'node.role == manager' \
      -e ADVERTISE_ADDR=$advertise_addr \
      -e POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password \
      dokploy/dokploy:latest
sh

The code of the Dokploy v0.26.5:

The code of the Dokploy v0.26.6:

Solution#

Installation script of v0.26.5:

Dokploy Authenticated RCE
https://astro-pure.js.org/blog/dokploy_rce_24841
Author RaaX
Published at February 2, 2026
Comment seems to stuck. Try to refresh?✨