---
id: "CVE-2026-111438"
kind: "vulnerability"
aliases: ["CVE-2026-111438"]
title: "openGauss: replication auth bypass lets outside hosts read backups and logs"
severity: "medium"
cvss: 6.5
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["database", "hadr", "opengauss", "runtime", "self-hosted"]
not_affected_if: ["internal-network-only", "no-hadr-replication", "unaffected-version"]
published_at: "2026-10-19T09:17:07+00:00"
first_seen_at: "2026-10-23T21:57:17+00:00"
updated_at: "2026-10-25T03:57:22+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-111438", "first_seen_at": "2026-10-23T21:57:17+00:00"}]
---

# openGauss: replication auth bypass lets outside hosts read backups and logs

openGauss HADR and SW replication senders skip the internal-connection check and the full pg_hba policy, so replication connections from non-internal networks can authenticate. An attacker who authenticates this way can read backup and log data through the replication protocol.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Confirm the installed version is `3.0.x`, `3.1.x`, `5.0.x`, `5.1.0`, `6.0.x`, or `7.0.0-RC1` to `7.0.0-RC3`.
- Check whether HADR or SW replication is enabled on the senders.
- Review `pg_hba.conf` for replication entries that accept non-internal addresses.

## Fix

- Upgrade openGauss to `7.0.0-LTS`.
- Review the upstream fix at https://gitcode.com/opengauss/openGauss-server/pull/9757 if you cannot upgrade yet.
- Restrict replication entries in `pg_hba.conf` to internal addresses until the upgrade is done.

## Timeline

- 2026-10-23T21:57:17+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-111438

## From the sources

在 openGauss-server 的 src/common/backend/libpq/hba.cpp 中，复制连接认证存在访问控制绕过。hba_getauthmethod() 在处理 HADR/SW 复制发送方时，不要求 is_node_internal_connection()，直接调用 check_hba_replication()。check_hba_replication() 仅按 replication 标记做弱匹配，缺少普通 check_hba() 中的远程 trust 禁止等完整校验。因此，非内部网络的 HADR/SW 复制连接可绕过内部连接限制和完整 pg_hba 策略完成认证，进而通过复制协议读取备份与日志数据。

此问题随 HADR 复制发送方绕过内部连接校验进入代码，自 3.0.0 起即存在。受影响版本包括 3.0.x、3.1.x、5.0.x、5.1.0、6.0.x，以及 7.0.0-RC1、7.0.0-RC2、7.0.0-RC3。该问题已在 7.0.0-LTS版本修复，通过要求 HADR/SW 复制发送方必须经过 is_node_internal_connection 校验，使外部复制连接改走普通 check_hba() 并触发禁止远程 trust 策略。修复pr见https://gitcode.com/opengauss/openGauss-server/pull/9757。

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
