Auth bypass in Enterprisedb Bdr/pgd
CVE-2025-2506
When pglogical attempts to replicate data, it does not verify it is using a replication connection, which means a user with CONNECT access to a database configured for replication can execute the pglogical command to obtain read access to replicated tables. When pglogical runs it should verify it is running on a replication connection but does not perform this check. This vulnerability was introduced in the pglogical 3.x codebase, which is proprietary to EDB. The same code base has been integrated into BDR/PGD 4 and 5. To exploit the vulnerability the attacker needs at least CONNECT permissions to a database configured for replication and must understand a number of pglogical3/BDR specific commands and be able to decode the binary protocol.
Vulnerability class: Broken Access Control
EPSS: 0.003 (23.8th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N.
Affected products
- Enterprisedb Bdr/pgd — versions 4, 5
- Enterprisedb Pglogical — versions 3
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2025-2506?
- CVE-2025-2506 is a medium-severity vulnerability in Enterprisedb Bdr/pgd, classified under Missing Authorization. CVSS score: 5.3/10. Published 2025-05-22.
- How severe is CVE-2025-2506?
- Medium severity. CVSS v3 base score is 5.3 out of 10.