Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege DB account
-
DeliverySubmit SQL with crafted \%/\_/\x escape
-
ExploitTrigger one-byte OOB write in trimString()
-
ExecutionCorrupt tmpTokenBuf stack memory
-
ImpactCrash 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch: upgrade to TDengine version 3.4.1.14 or later.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-44767
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB