{"id":"CVE-2026-54638","published":"2026-07-28T22:14:53Z","modified":"2026-07-29T14:20:26Z","title":"td has pre-auth denial of service via unbounded memory allocation in proto.UnencryptedMessage.Decode","vendor":"gotd","product":"td","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0063,"percentile":0.44611,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"references":[{"url":"https://github.com/gotd/td/security/advisories/GHSA-whmm-qj9r-wvr2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gotd/td/issues/1711","tags":["x_refsource_MISC"]},{"url":"https://github.com/gotd/td/commit/9d5d1f31ea5022d9798d84ccce15de2e91ba6baa","tags":["x_refsource_MISC"]},{"url":"https://github.com/gotd/td/releases/tag/v0.145.1","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":8.92},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"gotd","affectedVersions":[{"vendor":"gotd","product":"td","versions":["< 0.145.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-29T14:20:16.425469Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gotd/td","vulnerableRanges":["<0.145.1"],"patched":["0.145.1"],"from":["GHSA-whmm-qj9r-wvr2","GO-2026-6138"],"provenance":"source"}],"summary":{"text":"The td Telegram MTProto client library for Go contains a flaw in proto.UnencryptedMessage.Decode (proto/unencrypted_message.go), which allocates memory based on an attacker-controlled length field before validating it against the remaining buffer. An attacker able to send a crafted unencrypted MTProto packet to a client using this component can exhaust memory and CPU, causing denial of service, and no authentication or user interaction is required, only network reachability to the affected client.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:50Z"},"euvd":{"id":"EUVD-2026-50085","exploited":false,"provenance":"source"}}