# CVE-2026-14178: openGauss存在非法内存访问导致DoS漏洞

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

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.37% (percentile 23, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-06-30T13:56:16.846Z
- **Modified:** 2026-06-30T15:16:51.783Z

## Who should check

- Anyone running openGauss-server-7.0.0-RC2 openGauss-server-7.0.0-RC2
- Anyone running openGauss-server-7.0.0-RC1 openGauss-server-7.0.0-RC1
- Anyone running openGauss-server-7.0.0-RC3 (versions: see the vendor advisory)

## Description

openGauss 在处理带 NLS 参数的 to\_timestamp 调用时，to\_timestamp\_with\_fmt\_nls() 会将 nls\_fmt\_str 保存到 u\_sess-\>parser\_cxt.nls\_fmt\_str。在 seqscan + sort 执行路径下，该字符串原本被分配在 SeqScan 的表达式上下文中；当 SeqScan 完成后，该内存上下文会被 reset，但后续结果输出阶段 timestamp\_out() 仍会通过 CheckNlsFormat() 访问 u\_sess-\>parser\_cxt.nls\_fmt\_str，导致访问已释放内存。攻击者在具备数据库 SQL 执行权限的情况下，可构造特定 to\_timestamp(..., ..., nlsparam) 查询触发 heap-use-after-free。在 ASan/Memcheck 环境下表现为数据库服务退出；在实际运行环境中可能造成后端进程异常退出，影响数据库服务可用性，形成拒绝服务风险。该问题在openGauss-server-7.0.0-RC1版本和openGauss-server-7.0.0-RC2版本存在，目前已在openGauss-server-7.0.0-RC3版本修复。由于
openGauss-server-7.0.0-RC1版本和openGauss-server-7.0.0-RC2均为创新版本，不会发布针对性补丁包，涉及版本升级至
openGauss-server-7.0.0-RC3或更新版本即可。

## Affected and fixed versions

- openGauss-server-7.0.0-RC2: openGauss-server-7.0.0-RC2 (cvelist)
- openGauss-server-7.0.0-RC1: openGauss-server-7.0.0-RC1 (cvelist)
- openGauss-server-7.0.0-RC3: see vendor advisory (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-14178. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-14178.md
Affected: openGauss-server-7.0.0-RC2 openGauss-server-7.0.0-RC2; openGauss-server-7.0.0-RC1 openGauss-server-7.0.0-RC1; openGauss-server-7.0.0-RC3
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for openGauss-server-7.0.0-RC2, openGauss-server-7.0.0-RC1, openGauss-server-7.0.0-RC3: 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-14178 being exploited?

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

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

Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

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

openGauss-server-7.0.0-RC2 openGauss-server-7.0.0-RC2; openGauss-server-7.0.0-RC1 openGauss-server-7.0.0-RC1; openGauss-server-7.0.0-RC3.

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

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-14178?

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/8877>

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

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