check_hba_replication 认证与访问控制绕过

Summary

CVECVE-2026-111438
StatePUBLISHED
AssigneropenGauss
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-10-19 09:17:07 UTC
Updated2026-10-19 20:56:36 UTC
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。

Risk And Classification

Primary CVSS: v3.1 6.5 MEDIUM from a1a479f7-907b-4ae8-a999-9148cadc9224

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

EPSS: 0.003610000 probability, percentile 0.284070000 (date 2026-10-19)

Problem Types: CWE-288 | CWE-288 CWE-288 Authentication bypass using an alternate path or channel


VersionSourceTypeScoreSeverityVector
3.1a1a479f7-907b-4ae8-a999-9148cadc9224Secondary6.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
3.1CNACVSS6.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA OpenGauss-server OpenGauss-server unaffected 7.0.0-LTS openEuler, Centos
CNA OpenGauss-server OpenGauss-server affected 3.0.0-3.0.5 openEuler, Centos
CNA OpenGauss-server OpenGauss-server affected 3.1.0-3.1.1 openEuler, Centos
CNA OpenGauss-server OpenGauss-server affected 5.0.0-RC1 openEuler, Centos
CNA OpenGauss-server OpenGauss-server affected 5.0.0-5.0.3 openEuler, Centos
CNA OpenGauss-server OpenGauss-server affected 6.0.0-RC1 openEuler, Centos
CNA OpenGauss-server OpenGauss-server affected 6.0.0-6.0.6 openEuler, Centos
CNA OpenGauss-server OpenGauss-server affected 7.0.0-RC1, 7.0.0-RC2, 7.0.0-RC3 openEuler, Centos

References

ReferenceSourceLinkTags
gitcode.com/opengauss/openGauss-server/pull/9757 a1a479f7-907b-4ae8-a999-9148cadc9224 gitcode.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report