Description
在 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。
Published: 2026-10-19
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized data disclosure via replication bypass
Action: Apply Patch
AI Analysis

Impact

openGauss servers have a flaw in the replication authentication routine, where external HADR or SW replication senders bypass the internal connection check. The check_hba_replication routine performs only a weak replication flag match without applying the full pg_hba trust restrictions found in check_hba(). As a result, a non‑internal network can authenticate as a replication client and read backup and log data, exposing sensitive information without gaining code execution.

Affected Systems

Affected versions include all releases from 3.0.x through 7.0.0-RC3, specifically 3.0.x, 3.1.x, 5.0.x, 5.1.0, 6.0.x, and the 7.0.0‑RC1, RC2, RC3 builds. The issue is fixed in the 7.0.0‑LTS release after applying pull request 9757, which enforces an internal‑connection check for replication clients.

Risk and Exploitability

The vulnerability has a CVSS score of 6.5, indicating moderate severity. EPSS data is not available, and the issue is not listed in CISA’s KEV catalog. Attackers need the ability to initiate a HADR or SW replication connection from a non‑internal network segment; no local authentication or privileged access is required beyond establishing that connection. Once connected, the attacker can retrieve replica backups and logs, which may contain confidential data. Though code execution is not supported, the confidentiality impact is significant, especially for systems with sensitive backup information.

Generated by OpenCVE AI on October 19, 2026 at 09:22 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to 7.0.0‑LTS or later which contains the fix from pull request 9757.
  • If an upgrade is not immediately possible, configure the environment so that HADR/SW replication connections are accepted only from internal IP ranges, using host‑based SSH, firewall rules, or local network segmentation.
  • Disable external HADR/SW replication or require strong authentication for replication clients until the patch can be applied.

Generated by OpenCVE AI on October 19, 2026 at 09:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 08:45:00 +0000

Type Values Removed Values Added
Description 在 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。
Title check_hba_replication 认证与访问控制绕过
Weaknesses CWE-288
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: openGauss

Published:

Updated: 2026-10-19T08:08:03.265Z

Reserved: 2026-10-16T03:04:53.420Z

Link: CVE-2026-111438

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-19T09:17:07.173

Modified: 2026-10-19T09:17:07.173

Link: CVE-2026-111438

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T09:30:06Z

Weaknesses
  • CWE-288

    Authentication Bypass Using an Alternate Path or Channel