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或更新版本即可。
Published: 2026-06-30
Score: 5.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An improper handling of the NLS parameter in the to_timestamp function causes a heap-use-after-free condition in openGauss. When a SQL query containing to_timestamp(..., ..., nlsparam) is executed, the memory holding the format string is freed before the results are output, which can lead to a crash of the backend process. The flaw exists only for users who have the ability to run arbitrary SQL, and the resulting crash can make the database service unavailable for legitimate users. The weakness is as CWE-416 and is reflected in a CVSS score of 5.9.

Affected Systems

The vulnerability affects openGauss-server releases 7.0.0-RC1 and 7.0.0-RC2; the fix is included from 7.0.0-RC3 onward.

Risk and Exploitability

With a CVSS score of 5.9 the severity is moderate, and no EPSS score is available, so the exploitation likelihood is uncertain. Based on the description, the attack vector requires database SQL access; an attacker who can invoke a tailored to_timestamp call can trigger the heap-use-after-free, causing the database backend to terminate. The issue is not listed in CISA’s KEV catalog, indicating no known widespread exploitation, but it still poses a serious availability risk in production environments.

Generated by OpenCVE AI on June 30, 2026 at 17:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the database to openGauss-server 7.0.0-RC3 or a newer release which contains the fix
  • Restrict SQL execution privileges to trusted users to reduce the attack surface
  • Enable database process monitoring and automatic fail‑over to minimize downtime if a crash occurs

Generated by OpenCVE AI on June 30, 2026 at 17:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 01 Jul 2026 10:30:00 +0000

Type Values Removed Values Added
First Time appeared Opengauss-server
Opengauss-server opengauss-server-7.0.0-rc1
Opengauss-server opengauss-server-7.0.0-rc2
Opengauss-server opengauss-server-7.0.0-rc3
Vendors & Products Opengauss-server
Opengauss-server opengauss-server-7.0.0-rc1
Opengauss-server opengauss-server-7.0.0-rc2
Opengauss-server opengauss-server-7.0.0-rc3

Tue, 30 Jun 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 30 Jun 2026 14:00:00 +0000

Type Values Removed Values Added
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或更新版本即可。
Title openGauss存在非法内存访问导致DoS漏洞
Weaknesses CWE-416
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

Opengauss-server Opengauss-server-7.0.0-rc1 Opengauss-server-7.0.0-rc2 Opengauss-server-7.0.0-rc3
cve-icon MITRE

Status: PUBLISHED

Assigner: openGauss

Published:

Updated: 2026-06-30T14:40:10.603Z

Reserved: 2026-06-30T07:37:54.949Z

Link: CVE-2026-14178

cve-icon Vulnrichment

Updated: 2026-06-30T14:40:05.913Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-01T10:01:25Z

Weaknesses