Skip to main content

TDengine CVE-2026-62353

| EUVDEUVD-2026-44771 MEDIUM
Out-of-bounds Read (CWE-125)
2026-07-15 security-advisories@github.com
5.4
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privileged TDengine credentials
  2. Delivery
    Connect to TDengine SQL interface over network
  3. Exploit
    Submit SQL query with trailing-backslash string literal
  4. Execution
    Trigger off-by-one read in tGetToken()
  5. Impact
    Server 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

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

Vendor (github) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
vuln.today AI 7.1 HIGH

Server crash warrants A:H over vendor-assigned A:L; PR:L confirmed by authentication requirement; C:L for single adjacent byte read.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/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
Low
Integrity
None
Availability
Low

Lifecycle Timeline

1
Patch available
Jul 15, 2026 - 21:18 EUVD

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

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Low
niche IoT-focused time-series database, limited general enterprise footprint
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
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.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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