CVE-2025-56157 Details
Description
Default credentials in Dify thru 1.5.1. PostgreSQL username and password specified in the docker-compose.yaml file included in its source code. NOTE: the Supplier reports that the Docker configuration does not make PostgreSQL (on TCP port 5432) exposed by default in version 1.0.1 or later.
A vulnerability exists in Dify versions through 1.5.1, where default PostgreSQL credentials are hardcoded in the docker-compose.yaml file. The default username is 'postgres' and the password is 'difyai123456'. If the PostgreSQL service is exposed to the internet, an attacker can gain unauthorized access to the database. This access could lead to the disclosure of sensitive information, unauthorized data manipulation, and, with superuser privileges, the execution of arbitrary commands on the database host.
Users should change the default PostgreSQL password to a strong, unique value and ensure that port 5432 is not exposed to the internet. Dify can be updated to a version that addresses this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 19, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-798 | Use of Hard-coded Credentials | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| langgenius dify | <= 1.5.1 |
CPE
Remediation
| |
Change History
10 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 13, 2026 | CVE Translated | [email protected] |
| Jul 5, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jan 29, 2026 | CVE Modified | [email protected] |
| Jan 28, 2026 | CVE Modified | [email protected] |
| Jan 22, 2026 | CVE Modified | [email protected] |
| Dec 30, 2025 | Initial Analysis | [email protected] |
| Dec 19, 2025 | CVE Modified | CISA-ADP |
| Dec 18, 2025 | New CVE Received | [email protected] |