CVE-2026-14178
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedopenGauss 在处理带 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或更新版本即可。
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceopenGauss has a heap-use-after-free vulnerability in to_timestamp() with NLS parameters. The nls_fmt_str is stored in u_sess->parser_cxt.nls_fmt_str but allocated in the SeqScan expression context, which gets reset after SeqScan completes. Later, timestamp_out() accesses this freed memory through CheckNlsFormat() during result output, causing a use-after-free.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check openGauss server versionRun 'SELECT version();' or 'gaussdb --version' to determine the installed versionAffected if Version is earlier than 7.0.0-RC3 (the fixed release)
-
Verify to_timestamp function usage with NLS parametersReview application SQL queries and database logs for use of to_timestamp() with explicit NLS format strings (such as 'NLS_DATE_FORMAT' or similar)Affected if The to_timestamp() function is called with NLS format parameters in any query
-
Confirm NLS parameter configuration is activeCheck session or database parameters for NLS-related settings: query 'SHOW all;' or check 'pg_settings' for NLS_DATE_FORMAT, NLS_TIMESTAMP_FORMAT, or similar NLS environment variablesAffected if NLS date/timestamp format parameters are configured or set in the session context
-
Identify query execution path through SeqScanAnalyze query execution plans (EXPLAIN/EXPLAIN ANALYZE) for queries using to_timestamp() with NLS to confirm they pass through SeqScan node executionAffected if Queries using to_timestamp with NLS parameters are executed via SeqScan plan nodes (the vulnerable execution path)
A user is affected if they run openGauss version earlier than 7.0.0-RC3 AND execute to_timestamp() with NLS format parameters, where the query plan involves SeqScan execution that triggers the vulnerable code path in timestamp_out().
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade openGauss-server to version 7.0.0-RC3 or newer to resolve this vulnerability.
openGauss-server-7.0.0-RC3 or later
- 1. Identify all openGauss-server installations running version 7.0.0-RC1 or 7.0.0-RC2
- 2. Schedule a maintenance window for the upgrade
- 3. Backup the existing database data and configuration files
- 4. Download openGauss-server-7.0.0-RC3 or a newer stable release from the official openGauss repository
- 5. Stop the openGauss database service
- 6. Install the new openGauss-server-7.0.0-RC3 (or newer) version
- 7. Start the openGauss database service
- 8. Verify the database is operational and test the to_timestamp function with NLS parameters to confirm the vulnerability is resolved
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation6.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,664.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-14178 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-14178 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data