# CVE-2026-111438: check\_hba\_replication 认证与访问控制绕过

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.39% (percentile 25, 2026-11-28)
- **CWE:** CWE-288
- **Published:** 2026-10-19T08:08:03.265Z
- **Modified:** 2026-10-19T20:56:36.663Z

## Who should check

- Anyone running openGauss-server 3.0.0-3.0.5; 3.1.0-3.1.1; 5.0.0-RC1; 5.0.0-5.0.3; 6.0.0-RC1; 6.0.0-6.0.6; 7.0.0-RC1, 7.0.0-RC2, 7.0.0-RC3

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

## Affected and fixed versions

- openGauss-server: 3.0.0-3.0.5; 3.1.0-3.1.1; 5.0.0-RC1; 5.0.0-5.0.3; 6.0.0-RC1; 6.0.0-6.0.6; 7.0.0-RC1, 7.0.0-RC2, 7.0.0-RC3 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-111438. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-111438.md
Affected: openGauss-server 3.0.0-3.0.5; 3.1.0-3.1.1; 5.0.0-RC1; 5.0.0-5.0.3; 6.0.0-RC1; 6.0.0-6.0.6; 7.0.0-RC1, 7.0.0-RC2, 7.0.0-RC3
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for openGauss-server: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-111438 being exploited?

There is no confirmed exploitation: CVE-2026-111438 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.39% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-111438?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-111438?

openGauss-server 3.0.0-3.0.5; 3.1.0-3.1.1; 5.0.0-RC1; 5.0.0-5.0.3; 6.0.0-RC1; 6.0.0-6.0.6; 7.0.0-RC1, 7.0.0-RC2, 7.0.0-RC3.

### Is there a fix for CVE-2026-111438?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-111438?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://gitcode.com/opengauss/openGauss-server/pull/9757>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-111438>

HTML: <https://flawdb.com/CVE-2026-111438> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-111438>
