Dokploy pre-0.31.1 database password change command injection (CVE-2026-129987)

Authenticated users can achieve arbitrary OS command execution as root via backtick injection in Dokploy database password change flows for MySQL, PostgreSQL, MariaDB, MongoDB, and Redis. Fixed in 0.31.1.

Summary

CVE-2026-129987 affects Dokploy, a self-hostable PaaS, prior to version 0.31.1. The database password validation used by the MySQL, PostgreSQL, MariaDB, MongoDB, and Redis change-password procedures permits backticks, and the procedures interpolate attacker-controlled passwords into Bash command strings. An authenticated user who can update a database password can trigger command substitution before the database command runs, resulting in arbitrary operating-system command execution with Dokploy process privileges, which are typically root.

This issue is fixed in version 0.31.1.

What to do

1. Upgrade Dokploy to version 0.31.1 or later immediately. The fixed release is available at https://github.com/Dokploy/dokploy/releases/tag/v0.31.1. 2. Review the vendor advisory and patch commit for full details before making production changes: https://github.com/Dokploy/dokploy/security/advisories/GHSA-9932-qg8x-pr32 and https://github.com/Dokploy/dokploy/commit/accc2ffbda3e698bad328cc6e9fe5837a7bafba6. 3. If you cannot upgrade immediately, restrict access to the Dokploy management interface to trusted administrators only and audit any recent database password changes for suspicious values containing backticks or shell metacharacters. 4. Check Dokploy logs and system logs for signs of command execution or unusual child processes, especially from accounts that have permission to update database passwords. 5. After upgrading, verify the version and re-test database password change functionality for MySQL, PostgreSQL, MariaDB, MongoDB, and Redis.

References

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-129987 - Fix commit: https://github.com/Dokploy/dokploy/commit/accc2ffbda3e698bad328cc6e9fe5837a7bafba6 - Pull request: https://github.com/Dokploy/dokploy/pull/5910 - Release: https://github.com/Dokploy/dokploy/releases/tag/v0.31.1 - Advisory: https://github.com/Dokploy/dokploy/security/advisories/GHSA-9932-qg8x-pr32

Sources