CVE-2026-14178: openGauss存在非法内存访问导致DoS漏洞
openGauss 在处理带 NLS 参数的 totimestamp 调用时,totimestampwithfmtnls() 会将 nlsfmtstr 保存到 usess->parsercxt.nlsfmtstr。在 seqscan + sort 执行路径下,该字符串原本被分配在 SeqScan 的表达式上下文中;当 SeqScan 完成后,该内存上下文会被 reset,但后续结果输出阶段 timestampout() 仍会通过 CheckNlsFormat() 访问 usess->parsercxt.nlsfmtstr,导致访问已释放内存。攻击者在具备数据库 SQL 执行权限的情况下,可构造特定 totimestamp(..., ..., 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或更新版本即可。
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-14178?
CVE-2026-14178 has a medium severity score of 5.9.
How do I fix CVE-2026-14178?
To address CVE-2026-14178, ensure that your openGauss server is updated to the latest version that includes patches for this vulnerability.
What types of attacks can be executed due to CVE-2026-14178?
CVE-2026-14178 allows attackers to potentially cause a Denial of Service (DoS) due to illegal memory access.
Which software is affected by CVE-2026-14178?
CVE-2026-14178 affects the openGauss server software.
What causes the vulnerability in CVE-2026-14178?
The vulnerability in CVE-2026-14178 is caused by the handling of an NLS parameter in a way that leads to use-after-free memory access.