CVE-2026-14178

openGauss存在非法内存访问导致DoS漏洞

Published Jun 30, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
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或更新版本即可。

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
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
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
openGauss
Published
Updated
Jun 30, 2026, 2:40 PM
Reserved
Jun 30, 2026, 7:37 AM
Status
Deferred
Published
Jun 30, 2026, 2:16 PM
Modified
Jun 30, 2026, 3:16 PM