CVE-2025-56157 Hardcoded credentials in n/a
Hardcoded PostgreSQL credentials in Dify's Docker configuration allow attackers to access the database if the port is exposed.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-56157?
CVE-2025-56157 is a critical vulnerability in n/a, published on 18 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-798
Which versions are affected by CVE-2025-56157?
It affects 1 product.
Products include Langgenius Dify.
How do I fix CVE-2025-56157?
No fix has been published for CVE-2025-56157 yet. Limit exposure of the affected software until one is available.
Is CVE-2025-56157 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-56157 exists.
Other vulnerabilities in n/a
Sources
Also known as GHSA-f5cx-j2cw-pgfg.