Description
TDengine is an open source, time-series database optimized for Internet of Things devices. In 3.4.1.6 and earlier, source/libs/parser/src/parUtil.c trimString() checks space for only one byte before processing SQL string escape sequences \%, \_, or \x, allowing a one-byte out-of-bounds write to the stack buffer tmpTokenBuf that can cause denial of service and potentially remote code execution. This issue is fixed in version 3.4.1.14.
Published: 2026-07-15
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

TDengine 3.4.1.6 and earlier contain an off‑by‑one buffer overflow in the trimString function used while processing SQL escape sequences such as \%, \_, or \x. The vulnerability writes one byte beyond a stack buffer, which can corrupt execution context, causing a denial of service and, depending on context, remote code execution. The weakness is categorized as CWE-121 and CWE-787.

Affected Systems

The affected product is TAOSDATA TDengine, version 3.4.1.6 and earlier. The issue was addressed in version 3.4.1.14; any installation on those or older versions is vulnerable.

Risk and Exploitability

The CVSS score of 8.3 classifies this as a high‑severity flaw. The EPSS score of less than 1% indicates that active exploitation is currently low, and the vulnerability is not listed in the CISA KEV catalog. However, based on the CVE description, it is inferred that the flaw can be triggered via malicious SQL input, which suggests it is likely exploitable remotely by an authenticated or unauthenticated user who can send crafted queries to the database. While exploitation probability is low today, the potential to execute arbitrary code warrants prompt remediation.

Generated by OpenCVE AI on July 31, 2026 at 03:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade TDengine to version 3.4.1.14 or later to apply the vendor patch.
  • Restrict database access to trusted hosts or services, reducing the attack surface until the software can be updated.
  • Implement input validation or a whitelist that rejects or sanitizes SQL strings containing escape sequences such as \%, \_, or \x before they reach the parser.

Generated by OpenCVE AI on July 31, 2026 at 03:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 15 Jul 2026 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Taosdata
Taosdata tdengine
Vendors & Products Taosdata
Taosdata tdengine

Wed, 15 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 15 Jul 2026 19:15:00 +0000

Type Values Removed Values Added
Description TDengine is an open source, time-series database optimized for Internet of Things devices. In 3.4.1.6 and earlier, source/libs/parser/src/parUtil.c trimString() checks space for only one byte before processing SQL string escape sequences \%, \_, or \x, allowing a one-byte out-of-bounds write to the stack buffer tmpTokenBuf that can cause denial of service and potentially remote code execution. This issue is fixed in version 3.4.1.14.
Title TDengine: Off-by-One Buffer Overflow
Weaknesses CWE-121
CWE-787
References
Metrics cvssV3_1

{'score': 8.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H'}


Subscriptions

Taosdata Tdengine
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-15T19:37:03.649Z

Reserved: 2026-07-13T21:42:50.096Z

Link: CVE-2026-62349

cve-icon Vulnrichment

Updated: 2026-07-15T19:31:08.523Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T03:15:04Z

Weaknesses