CVE-2026-54638: td has pre-auth denial of service via unbounded memory allocation in proto.UnencryptedMessage.Decode
gotd/td is a T Telegram MTProto API client in Go. Prior to 0.145.1, proto.UnencryptedMessage.Decode in proto/unencrypted_message.go read attacker controlled dataLen from an unauthenticated MTProto unencrypted packet and allocated make([]byte, dataLen) before checking the remaining buffer, allowing remote unauthenticated denial of service through excessive memory allocation and CPU or garbage collection pressure. This issue is fixed in version 0.145.1.
Security readout for executives and security teams
Plain-English summary
Applications using gotd/td before 0.145.1 can be remotely forced to consume excessive memory before authentication. An attacker may cause slowdowns, crashes, or service restarts without credentials. The issue affects availability only; the supplied sources do not indicate data theft or modification.
Executive priority
Prioritize remediation for internet-facing or otherwise attacker-reachable services because exploitation requires no authentication and can interrupt availability. Upgrade promptly through normal emergency dependency procedures. Isolated development systems are lower priority, but vulnerable production artifacts should not remain deployed. No confidentiality or integrity impact is documented.
Technical view
proto.UnencryptedMessage.Decode trusts an attacker-controlled dataLen in an unauthenticated MTProto packet and allocates that amount before confirming sufficient buffered data. This can create excessive memory use and CPU or garbage-collection pressure. CVE-2026-54638 is rated CVSS 7.5 and maps to CWE-770 and CWE-789. Version 0.145.1 fixes the flaw.
Likely exposure
Exposure exists where software includes gotd/td below 0.145.1 and processes attacker-reachable, unencrypted MTProto traffic. Risk is greatest for continuously available services without strict network isolation or resource controls. The supplied sources provide no CPEs or deployment inventory, so each organization must identify affected dependencies and reachable processing paths.
Exploitation context
The attack is remote, unauthenticated, low complexity, and requires no user interaction. Its documented impact is denial of service through memory allocation and processing pressure. The source bundle marks this CVE as absent from KEV and provides no evidence of active exploitation; real-world exploitation status is therefore unconfirmed.
Researcher notes
The vulnerable operation occurs before remaining-buffer validation in proto/unencrypted_message.go. The supplied advisory, issue, patch commit, and release identify 0.145.1 as fixed. Assessment should focus on dependency reachability, actual packet-processing paths, and resource behavior. No exploit prevalence, affected downstream product list, or CPE mapping is provided.
Mitigation direction
Upgrade gotd/td to version 0.145.1 or later.
Rebuild and redeploy every application containing the vulnerable dependency.
Until upgraded, restrict untrusted access to affected MTProto processing where operationally feasible.
Apply memory limits and restart controls as temporary resilience measures, not substitutes for upgrading.
Validation and detection
Inspect dependency manifests, lockfiles, SBOMs, and deployed binaries for gotd/td versions below 0.145.1.
Confirm all production artifacts were rebuilt with gotd/td 0.145.1 or later.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-770: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-770 · source CWE mapping
Allocation of Resources Without Limits or Throttling
Allocation of Resources Without Limits or Throttling represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Memory Allocation with Excessive Size Value represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.