CVE-2026-14178

MEDIUM

openGauss 7.0.0-RC1-RC2 to_timestamp - Use-After-Free Denial of Service

Title source: manual
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-14178. PoCs published by HermesNA-1.

AI-analyzed exploit summary This repository contains an auto-generated stub module for CVE-2026-14178, a memory management vulnerability in openGauss's to_timestamp_with_fmt_nls() function. The code includes a placeholder for exploit implementation but lacks actual PoC logic, referencing an external patch for 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或更新版本即可。

Exploits (1)

github STUB 1 stars
by HermesNA-1 · pythonpoc
https://github.com/HermesNA-1/SnakeSploit/tree/main/data/modules_generated/cve-2026-14178_opengauss_nls.py

This repository contains an auto-generated stub module for CVE-2026-14178, a memory management vulnerability in openGauss's to_timestamp_with_fmt_nls() function. The code includes a placeholder for exploit implementation but lacks actual PoC logic, referencing an external patch for details.

Classification
Stub 98%
Attack Type
Other
Complexity
Moderate
Reliability
Theoretical
Target: openGauss (specific version not specified)
No auth needed
Prerequisites: Network access to openGauss server · Knowledge of vulnerable code path (seqscan + sort execution)
mistral-large-3 · analyzed Jul 09, 2026 Full analysis →

References (1)

Core 1

Scores

CVSS v3 5.9
EPSS 0.0035
EPSS Percentile 27.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-416
Status published
Products (3)
openGauss-server/openGauss-server-7.0.0-RC1 openGauss-server-7.0.0-RC1
openGauss-server/openGauss-server-7.0.0-RC2 openGauss-server-7.0.0-RC2
openGauss-server/openGauss-server-7.0.0-RC3 openGauss-server-7.0.0-RC3
Published Jun 30, 2026
Tracked Since Jun 30, 2026