Skip to main content

TDengine EUVDEUVD-2026-44767

| CVE-2026-62349 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-07-15 security-advisories@github.com
8.3
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with low-privilege DB account
  2. Delivery
    Submit SQL with crafted \%/\_/\x escape
  3. Exploit
    Trigger one-byte OOB write in trimString()
  4. Execution
    Corrupt tmpTokenBuf stack memory
  5. Impact
    Crash server (DoS) or attempt code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated session capable of submitting SQL to the TDengine engine (CVSS PR:L), and the malicious input must contain one of the specific string-escape sequences \%, \_, or \x within a SQL string literal so that trimString() enters the vulnerable escape-processing path with tmpTokenBuf near full. Limiting factors: the attacker needs at least low-privilege database credentials or an injection point into a query, the overflow is bounded to a single byte (favoring DoS over reliable RCE), and only versions 3.4.1.6 and earlier are affected - instances on 3.4.1.14+ are not exploitable. No end-user interaction is required (UI:N), and no non-default configuration is needed since the parser path is exercised by ordinary SQL string handling.

Impact

The CVSS 3.1 base score is 8.3 (High) with vector AV:N/AC:L/PR:L/UI:N, indicating network-reachable, low-complexity exploitation that requires some level of authentication (PR:L) - consistent with the need to submit SQL to the database engine. No EPSS score, SSVC decision, KEV listing, or POC was supplied, so exploitation probability cannot be quantified from the data; the absence of KEV and any published exploit suggests this is not currently seen in active, widespread exploitation. The most reliable outcome of a single-byte stack overflow is a crash/denial of service (supported by A:H), while the advisory's 'potentially remote code execution' and the C:H rating are aspirational - reliable RCE from a one-byte overwrite is difficult and modern stack protections (canaries/ASLR) further limit it, so the CVSS C:H/I:L impact profile appears optimistic relative to the described primitive. Net: treat this as a genuine priority for internet-exposed or multi-tenant TDengine deployments (DoS is readily achievable by any authenticated user), while regarding the RCE claim as unproven pending a working exploit.

Exploit ScenarioDerived

An attacker holding a low-privilege TDengine account (or an application service account reachable via SQL injection) submits a query whose string literal contains a crafted \%, \_, or \x escape sequence sized to overflow tmpTokenBuf by one byte. The malformed input corrupts adjacent stack memory during parsing, crashing the server process and denying service to all clients; with significant additional effort and favorable memory layout the same primitive is claimed to be leverageable toward code execution. No public POC was provided, so the DoS path is the practically demonstrated risk.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 15, 2026

Stack-based buffer overflow in TDengine (open-source IoT time-series database) versions 3.4.1.6 and earlier allows an authenticated user to trigger a one-byte out-of-bounds write by submitting SQL containing crafted escape sequences (\%, \_, or \x), leading to denial of service and potentially remote code execution. The flaw sits in the SQL parser's trimString() routine, which validates only a single byte of remaining space in the tmpTokenBuf stack buffer before writing escape-processed data. There is no public exploit identified at time of analysis, and the issue is not listed in CISA KEV; it is fixed in version 3.4.1.14.

RemediationAI

Vendor-released patch: upgrade to TDengine 3.4.1.14 or later, which corrects the bounds check in trimString(); this is the primary and recommended fix per the vendor advisory at https://github.com/taosdata/TDengine/security/advisories/GHSA-4v5h-fxjw-vrmq. Where immediate upgrade is not possible, reduce exposure by restricting network access to the TDengine query/service ports so that only trusted application hosts can reach the database (trade-off: may require firewall/allowlist changes and can break ad-hoc client access), and by tightening database account privileges so untrusted or low-trust users cannot submit arbitrary SQL, since exploitation requires an authenticated session (PR:L). Because the trigger is specific escape-sequence handling in SQL string literals, adding input validation or a query proxy that rejects or sanitizes SQL containing \%, \_, or \x escape patterns can serve as a stopgap, though this risks false positives against legitimate LIKE-pattern queries and should be treated as temporary until the patch is applied.

Affected VersionsENISA

TDengine < 3.4.1.14

Affected Packages

euvd tdengine fix: 3.4.1.14

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

TDengine is a purpose-built time-series database widely used for IoT and industrial telemetry workloads, exposing a SQL-like query interface. The vulnerability is a classic CWE-121 stack-based buffer overflow located in source/libs/parser/src/parUtil.c, inside trimString(), a helper invoked while the parser normalizes SQL string literals. When the parser encounters the escape sequences \%, \_, or \x, it processes them into the fixed-size stack buffer tmpTokenBuf, but the bounds check only ensures one byte of space remains rather than the full space needed for the expanded sequence, permitting a controlled one-byte write past the end of the buffer. Overwriting adjacent stack memory (such as a saved register, canary byte, or length field) can corrupt program control flow, which is the mechanism behind both the crash (DoS) and the theoretical code-execution outcome.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 8.3 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
vuln.today AI 7.6 HIGH

Network-reachable SQL parser needs low-priv authentication (PR:L) and is easy to trigger (AC:L); single-byte overflow yields reliable DoS (A:H) but only speculative, limited C/I impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
High

Lifecycle Timeline

2
Patch available
Jul 15, 2026 - 21:18 EUVD
CVE Published
Jul 15, 2026 - 19:18 cve.org
HIGH 8.3

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

TDengine versions 3.4.1.6 and earlier contain a stack-based buffer overflow in the SQL parser that allows authenticated users to trigger denial of service and potentially execute remote code through crafted SQL escape sequences. Organizations running vulnerable versions face operational disruption and data compromise risk from insider threats or compromised application credentials.

Business Impact: High
Compensating Controls

Apply vendor patch: upgrade to TDengine version 3.4.1.14 or later.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Medium
popular open-source IoT time-series database, common but not ubiquitous
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy