# CVE-2026-54638: td has pre-auth denial of service via unbounded memory allocation in proto.UnencryptedMessage.Decode

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-07-28T22:14:53.550Z
- Modified: 2026-10-23T23:10:00.157Z
- Also known as: GHSA-whmm-qj9r-wvr2, GO-2026-6138
- Weaknesses: CWE-770, CWE-789
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- gotd td: < 0.145.1
- github.com/gotd/td (Go): before 0.145.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/gotd/td/security/advisories/GHSA-whmm-qj9r-wvr2> (advisory, web)
- <https://github.com/gotd/td/issues/1711> (report, web)
- <https://github.com/gotd/td/commit/9d5d1f31ea5022d9798d84ccce15de2e91ba6baa> (fix, web)
- <https://github.com/gotd/td/releases/tag/v0.145.1> (web)
- <https://github.com/gotd/td> (package)

## Sources

- CVE List: [CVE-2026-54638](https://www.cve.org/CVERecord?id=CVE-2026-54638), CVE Terms of Use, modified 2026-07-29
- GitHub Advisory Database: [GHSA-whmm-qj9r-wvr2](https://github.com/advisories/GHSA-whmm-qj9r-wvr2), CC-BY-4.0, modified 2026-08-18
- Go Vulnerability Database: [GO-2026-6138](https://pkg.go.dev/vuln/GO-2026-6138), CC-BY-4.0, modified 2026-08-18
- NVD: [CVE-2026-54638](https://nvd.nist.gov/vuln/detail/CVE-2026-54638), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-54638 · Whole record: https://cve.day/CVE-2026-54638.json · Rebuilt by cve.day 2026-11-25T22:59:30.392Z
