Skip to content
CriticalVulnerability

CVE-2025-56157: Dify default PostgreSQL credentials in docker-compose.yaml

Identifier
CVE-2025-56157
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.9%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2025-56157 affects Dify through 1.5.1. The PostgreSQL username and password are hardcoded as defaults in the docker-compose.yaml file included in its source code. The supplier states that the Docker configuration does not expose PostgreSQL on TCP port 5432 by default in version 1.0.1 or later.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.