CVE-2026-62349

TDengine: Off-by-One Buffer Overflow

Published Jul 15, 2026 CVSS 3.1 · 8.3 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
First Time appeared Taosdata
Taosdata tdengine
Vendors & Products Taosdata
Taosdata tdengine
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 7:37 PM
Reserved
Jul 13, 2026, 9:42 PM
Status
Deferred
Published
Jul 15, 2026, 7:18 PM
Modified
Oct 24, 2026, 9:10 PM