CVE-2025-56157CWE-798hardcoded-credentials

CVE-2025-56157

Critical · published December 19, 2025

CVSS v3.1
9.8
EPSS
1%
Percentile
58.1
In the wild
Unconfirmed
What it is

🚨 Default credentials lurking in Dify could leave your database wide open! Anyone could stroll in using the PostgreSQL username and password found in the docker-compose.yaml file. 🔥 Think of it like leaving the front door of your house unlocked with a note that says, 'Come on in, everything’s fine!' It’s an invitation for anyone walking by to take a peek inside and potentially take what they want. An attacker could easily access your PostgreSQL database, potentially leading to full data theft or manipulation. This means they could read, modify, or even delete critical data, making it a recipe for absolute disaster if left unchecked!

Put simply

Think of it like leaving the front door of your house unlocked with a note that says, 'Come on in, everything’s fine!' It’s an invitation for anyone walking by to take a peek inside and potentially take what they want. This vulnerability allows unauthorized access due to hardcoded default credentials in the docker-compose.yaml file of Dify versions up to 1.5.1, exposing sensitive database information to anyone familiar with the setup.

What to do

An attacker could easily access your PostgreSQL database, potentially leading to full data theft or manipulation. This means they could read, modify, or even delete critical data, making it a recipe for absolute disaster if left unchecked! To protect your data, immediately change the default credentials in the docker-compose.yaml file and ensure you’re using secure passwords. Also, consider upgrading to the latest version of Dify to benefit from any security enhancements and best practices. You've got this! Follow these steps to lock down your database and sleep easy knowing your data is safe! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00860 · 58.1th percentile
Weakness
CWE-798 · Use of Hard-coded Credentials
Published
2025-12-19T00:16Z
Affected products (1)
ProductVersionsFixed in
langgenius/dify≤ 1.5.1—
References (8)
EPSS history
Timeline
  • 18 DEC 00:00Z
    Default credentials in Dify thru 1.5.1
    cvelistv5