CVE-2026-14178: openGauss openGauss-server - Use After Free
- Cve: CVE-2026-14178
- Name: openGauss openGauss-server - Use After Free
- 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或更新版本即可。
- Impact: Attackers with SQL execution permissions can cause backend process crashes, leading to denial of service and impacting database availability.
- Remediation: Upgrade to openGauss-server 7.0.0-RC3 or later.
- Vulnerability type: use_after_free
- Vulnerability impact: denial_of_service
- Requirement type: logged_in
- Requirements: Attacker needs database SQL execution permissions
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.9
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00367
- Epss percentile: 0.31137
- Assignee: a1a479f7-907b-4ae8-a999-9148cadc9224
- Published at: 2026-06-30T14:16:25Z
- Age in days: 147
- Modified at: 2026-06-30T15:16:51Z
- References total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-14178
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-416 | Use After Free |
References
| Url | Source | Tags |
|---|---|---|
| https://gitcode.com/opengauss/openGauss-server/pull/8877 | nvd |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts