CVE-2026-14178 Details
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或更新版本即可。
A heap-use-after-free vulnerability has been identified in openGauss versions 7.0.0-RC1 and 7.0.0-RC2. The issue arises in the to_timestamp_with_fmt_nls function, which improperly manages the NLS format string parameter. When the sequence scan and sort execution path is used, the NLS format string is stored in a memory context that is reset after the scan, leading to a use-after-free condition. This vulnerability can be exploited by an attacker with SQL execution privileges, causing a denial-of-service condition by abruptly terminating a backend process. The vulnerability has been fixed in openGauss version 7.0.0-RC3.
Users can upgrade to openGauss version 7.0.0-RC3 or a later version to address this vulnerability. No specific patch is available for the earlier RC1 and RC2 versions, as they are considered innovation releases.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 30, 2026CISA-ADP
Assessed Jun 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gitcode.com/opengauss/openGauss-server/pull/8877 | openGauss Community | Issue TrackingTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | openGauss Community |
Affected Products
| Product | Versions |
|---|---|
| openGauss | openGauss-server-7.0.0-RC1 openGauss-server-7.0.0-RC2 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 30, 2026 | CVE Modified | CISA-ADP |
| Jun 30, 2026 | New CVE Received | openGauss Community |
Volerion