CVE-2025-56157: Critical severity docker-compose/dify vulnerability

Published Dec 18, 2025
·
Updated

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.

Affected Software

2 affected components
docker-compose/dify<=1.5.1
LangGenius Dify Node.js<=1.5.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In Dify versions up to and including 1.5.1, update the PostgreSQL username and password used via docker-compose.yaml (these credentials are specified in the source code) to unique, non-default values.

    Dify default PostgreSQL credentials (PostgreSQL username/password used by docker-compose.yaml) = change from defaults to unique credentials
  2. Compensating control

    Ensure the PostgreSQL service is not exposed publicly on TCP port 5432 (the supplier notes docker does not expose it by default in Dify 1.0.1+). Verify Docker/networking configuration prevents external access to port 5432.

Event History

Dec 18, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-56157?

CVE-2025-56157 has a medium severity due to the presence of default credentials that can be exploited.

2

How do I fix CVE-2025-56157?

To fix CVE-2025-56157, change the default PostgreSQL username and password specified in the docker-compose.yaml file.

3

Which versions of Dify are affected by CVE-2025-56157?

Dify versions up to and including 1.5.1 are affected by CVE-2025-56157.

4

What type of vulnerability is CVE-2025-56157?

CVE-2025-56157 is a security vulnerability related to default credentials in a configuration file.

5

Can CVE-2025-56157 lead to unauthorized access?

Yes, CVE-2025-56157 can lead to unauthorized access due to the use of default credentials.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203