{"id":"CVE-2026-14178","state":"PUBLISHED","title":"openGauss存在非法内存访问导致DoS漏洞","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版本修复。由于\nopenGauss-server-7.0.0-RC1版本和openGauss-server-7.0.0-RC2均为创新版本，不会发布针对性补丁包，涉及版本升级至\nopenGauss-server-7.0.0-RC3或更新版本即可。","publishedAt":"2026-06-30T13:56:16.846Z","updatedAt":"2026-06-30T14:40:10.603Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"openGauss"},"assigner":"openGauss","products":["openGauss-server openGauss-server-7.0.0-RC2","openGauss-server openGauss-server-7.0.0-RC1","openGauss-server openGauss-server-7.0.0-RC3"],"affected":[{"vendor":"openGauss-server","product":"openGauss-server-7.0.0-RC2","defaultStatus":"affected","versions":[{"version":"openGauss-server-7.0.0-RC2","status":"affected"}],"platforms":["openEuler","Centos"],"collectionURL":"https://opengauss.org/zh/download/archive/?version=7.0.0-RC2"},{"vendor":"openGauss-server","product":"openGauss-server-7.0.0-RC1","defaultStatus":"affected","versions":[{"version":"openGauss-server-7.0.0-RC1","status":"affected"}],"platforms":["openEuler","Centos"],"collectionURL":"https://opengauss.org/zh/download/archive/?version=7.0.0-RC1"},{"vendor":"openGauss-server","product":"openGauss-server-7.0.0-RC3","defaultStatus":"unaffected","versions":[{"version":"openGauss-server-7.0.0-RC3","status":"unaffected"}],"platforms":["openEuler Centos"],"collectionURL":"https://opengauss.org/zh/download/archive/?version=7.0.0-RC3"}],"references":["https://gitcode.com/opengauss/openGauss-server/pull/8877"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:11:00.674Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/14xxx/CVE-2026-14178.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-14178","state":"PUBLISHED","datePublished":"2026-06-30T13:56:16.846Z","dateUpdated":"2026-06-30T14:40:10.603Z","assignerShortName":"openGauss","assignerOrgId":"a1a479f7-907b-4ae8-a999-9148cadc9224","dateReserved":"2026-06-30T07:37:54.949Z"},"containers":{"cna":{"title":"openGauss存在非法内存访问导致DoS漏洞","descriptions":[{"lang":"en","value":"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版本修复。由于\nopenGauss-server-7.0.0-RC1版本和openGauss-server-7.0.0-RC2均为创新版本，不会发布针对性补丁包，涉及版本升级至\nopenGauss-server-7.0.0-RC3或更新版本即可。"}],"affected":[{"vendor":"openGauss-server","product":"openGauss-server-7.0.0-RC2","defaultStatus":"affected","versions":[{"version":"openGauss-server-7.0.0-RC2","status":"affected"}],"platforms":["openEuler","Centos"],"collectionURL":"https://opengauss.org/zh/download/archive/?version=7.0.0-RC2"},{"vendor":"openGauss-server","product":"openGauss-server-7.0.0-RC1","defaultStatus":"affected","versions":[{"version":"openGauss-server-7.0.0-RC1","status":"affected"}],"platforms":["openEuler","Centos"],"collectionURL":"https://opengauss.org/zh/download/archive/?version=7.0.0-RC1"},{"vendor":"openGauss-server","product":"openGauss-server-7.0.0-RC3","defaultStatus":"unaffected","versions":[{"version":"openGauss-server-7.0.0-RC3","status":"unaffected"}],"platforms":["openEuler Centos"],"collectionURL":"https://opengauss.org/zh/download/archive/?version=7.0.0-RC3"}],"references":[{"url":"https://gitcode.com/opengauss/openGauss-server/pull/8877"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseSeverity":"MEDIUM","baseScore":5.9,"vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","description":"CWE-416 Use after free","type":"CWE"}]}],"providerMetadata":{"shortName":"openGauss","orgId":"a1a479f7-907b-4ae8-a999-9148cadc9224","dateUpdated":"2026-06-30T13:56:16.846Z"},"datePublic":"2026-06-30T07:53:00.000Z","impacts":[{"capecId":"CAPEC-469","descriptions":[{"lang":"en","value":"CAPEC-469 HTTP DoS"}]}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 1.0.2"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-30T14:39:56.155795Z","id":"CVE-2026-14178","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-30T14:40:10.603Z"}}]}}}