What’s Vulnerable › Vulnerabilities
CVE-2025-2506
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-05-22 · updated 2026-06-17
- Weakness: CWE-862
Description
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.
Affected products
- EnterpriseDB BDR/PGD: from 4 before 4.3.8-ELS; from 5 before 5.8.0 — fixed in 4.3.8-ELS, 5.8.0
- EnterpriseDB pglogical: from 3 before 3.7.26-ELS — fixed in 3.7.26-ELS
How to fix
Upgrade to a fixed version: EnterpriseDB BDR/PGD 4.3.8-ELS, 5.8.0; EnterpriseDB pglogical 3.7.26-ELS. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2025-2506 or the next vulnerability affects your stack