CVE-2026-14178 openGauss存在非法内存访问导致DoS漏洞

Medium 5.9 Published Updated

An attacker with SQL execution privileges can trigger a use-after-free in openGauss via crafted to_timestamp queries, causing denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-14178?

CVE-2026-14178 is a medium-severity use after free vulnerability in openGauss-server-7.0.0-RC1, published on 30 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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或更新版本即可。

Weakness: CWE-416

Which versions are affected by CVE-2026-14178?

How do I fix CVE-2026-14178?

No fix has been published for CVE-2026-14178 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2026-14178 being exploited?

There is no known exploitation of CVE-2026-14178 in the wild and no public exploit code.

Sources

Also known as GHSA-v555-5g3c-vq2x.

Is CVE-2026-14178 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free