CVE-2026-111438
check_hba_replication 认证与访问控制绕过
Check your servers for CVE-2026-111438
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-111438 affects opengauss-server, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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。
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.36%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 31.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 19 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-288 Authentication Bypass Using an Alternate Path or Channel
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| openGauss-server |
unaffected 7.0.0-LTS affected 3.0.0-3.0.5 affected 3.1.0-3.1.1 affected 5.0.0-RC1 affected 5.0.0-5.0.3 affected 6.0.0-RC1 affected 6.0.0-6.0.6 affected 7.0.0-RC1, 7.0.0-RC2, 7.0.0-RC3
Other versions: unaffected
|
Is my server affected?
Find the installed version of opengauss-server and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i opengauss-server
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-111438 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-111438RHEL, Rocky, Alma, Fedora
rpm -q opengauss-server
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-111438Alpine
apk list --installed | grep -i opengauss-serverWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-111438
trivy image --scanners vuln IMAGE | grep CVE-2026-111438
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
Source: the record CVE-2026-111438 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse