Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privileged TDengine credentials
-
DeliveryConnect to TDengine SQL interface over network
-
ExploitSubmit SQL query with trailing-backslash string literal
-
ExecutionTrigger off-by-one read in tGetToken()
-
ImpactServer process crashes (DoS) or leaks adjacent heap byte
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection 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 to TDengine with permission to submit SQL queries - specifically, PR:L in CVSS terms, meaning at minimum a low-privileged database account. The vulnerability is triggered deterministically by including a SQL string literal that ends with a bare backslash immediately before the closing single quote (e.g., 'value\), which is an edge case in TDengine's tokenizer but requires no special server configuration or non-default feature flags. No user interaction is required beyond query submission. Exploitation is limited by the authentication prerequisite: unauthenticated, external attackers cannot reach this code path without first obtaining valid credentials. The availability impact (server crash) is self-limiting in that repeated exploitation requires re-establishing a session after each crash, assuming TDengine is restarted by a supervisor process. |
| Impact | The CVSS 3.1 score of 5.4 (Medium) with vector AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L reflects a network-reachable, low-complexity flaw requiring only low-privileged authentication. Real-world risk is moderate but bounded: exploitation requires a valid database account with SQL submission rights, which meaningfully limits the attacker surface compared to unauthenticated flaws. The availability impact merits closer scrutiny - the description states the flaw allows crashing 'the server', which more accurately corresponds to A:H (complete process crash) than the vendor-assigned A:L; security teams should treat availability impact as potentially higher than the base score implies until TDengine's crash-recovery behavior is confirmed. The confidentiality impact (C:L) is realistic but limited to a single adjacent memory byte, making meaningful data exfiltration unlikely in practice. EPSS data was not provided. This CVE is not in the CISA KEV catalog and no POC has been identified, placing this in a lower real-world exploitation priority tier. However, the trivial trigger condition - a single malformed SQL string literal - means any authenticated attacker or compromised internal account could reliably cause a denial-of-service with minimal skill. |
| Exploit ScenarioDerived | An authenticated TDengine user - or an attacker who has compromised a low-privileged database account - connects to the TDengine server and executes a SQL query containing a string literal with a trailing backslash, such as SELECT * FROM table WHERE name = 'abc\. The tGetToken() parser reads one byte past the end of the string buffer, triggering a process crash and making the TDengine service unavailable until restarted. If the adjacent heap byte contains sensitive data (e.g., a fragment of a prior query or in-memory credential), it may be exposed in an error response or log. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 15, 2026
Out-of-bounds read in TDengine's SQL tokenizer (versions prior to 3.4.1.14) allows an authenticated user with SQL query access to crash the database server and potentially leak one byte of adjacent heap memory. The flaw resides in tGetToken() within source/libs/parser/src/parTokenizer.c, triggered by submitting a SQL string literal ending in a bare backslash (e.g., 'abc\). No public exploit code has been identified at time of analysis, and this CVE is not listed in the CISA KEV catalog.
RemediationAI
Upgrade TDengine to version 3.4.1.14 or later, which resolves the off-by-one read in tGetToken() as confirmed by the vendor's GitHub Security Advisory GHSA-5r9p-3j4f-gmgp (https://github.com/taosdata/TDengine/security/advisories/GHSA-5r9p-3j4f-gmgp). If an immediate upgrade is not possible, restrict SQL query access to only fully trusted, individually authorized accounts rather than shared service credentials, reducing the blast radius if any account is compromised. Additionally, deploy a WAF or query proxy that validates SQL string literals and rejects inputs containing unterminated escape sequences (trailing backslash before closing quote) - note that this requires application-layer inspection and may impact legitimate query patterns depending on your workload. There are no other vendor-documented workarounds at time of analysis.
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 time-series database designed for IoT workloads, identifiable via the affected CPE under taosdata/TDengine prior to 3.4.1.14. The vulnerability is rooted in CWE-125 (Out-of-bounds Read): the SQL tokenizer function tGetToken() in source/libs/parser/src/parTokenizer.c fails to correctly handle a trailing backslash inside a quoted SQL string literal. When the parser encounters a backslash as the last character before the null terminator in a string such as 'abc\, it treats the backslash as an escape prefix and blindly increments the read pointer by one additional byte, reading past the end of the allocated buffer into adjacent memory. This is a classic off-by-one read at the null boundary, not a write primitive. The tags 'Buffer Overflow' and 'Information Disclosure' align with the read-past-boundary behavior: the overread can return adjacent heap content and, depending on memory layout, dereference unmapped memory and cause a process crash.
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:L/I:N/A:L
Server crash warrants A:H over vendor-assigned A:L; PR:L confirmed by authentication requirement; C:L for single adjacent byte read.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
TDengine is a time-series database optimized for Internet of Things devices. Prior to 3.4.1.14, source/libs/parser/src/parTokenizer.c tGetToken() incremented past a trailing backslash in a SQL string literal such as 'abc\ and read one byte beyond the null terminator, allowing an authenticated user who can submit SQL queries to crash the server and possibly leak adjacent memory. This issue is fixed in version 3.4.1.14.
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.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-44771
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB