{"id":"CVE-2026-54638","summary":"td has pre-auth denial of service via unbounded memory allocation in proto.UnencryptedMessage.Decode","details":"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.","aliases":["GHSA-whmm-qj9r-wvr2"],"modified":"2026-07-31T03:34:02.337208476Z","published":"2026-07-28T22:14:53.550Z","database_specific":{"cwe_ids":["CWE-770","CWE-789"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54638.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/gotd/td/releases/tag/v0.145.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54638.json"},{"type":"ADVISORY","url":"https://github.com/gotd/td/security/advisories/GHSA-whmm-qj9r-wvr2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54638"},{"type":"REPORT","url":"https://github.com/gotd/td/issues/1711"},{"type":"FIX","url":"https://github.com/gotd/td/commit/9d5d1f31ea5022d9798d84ccce15de2e91ba6baa"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gotd/td","events":[{"introduced":"0"},{"fixed":"9d5d1f31ea5022d9798d84ccce15de2e91ba6baa"},{"fixed":"c540a4d2ff90b7343abf3bed624646d4489f7d3e"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"0.145.1"}]}}],"versions":["v0.145.0","v0.144.0","v0.143.0","v0.142.0","v0.141.0","v0.140.0","v0.139.0","v0.138.0","v0.137.0","v0.136.0","v0.135.0","v0.135-alpha.0","v0.134.0","v0.133.0","v0.132.0","v0.131.0","v0.130.0","v0.129.0","v0.128.0","v0.127.0","v0.126.0","v0.125.0","v0.124.0","v0.123.0","v0.122.0","v0.121.0","v0.120.0","v0.119.0","v0.118.0","v0.117.0","v0.116.0","v0.115.0","v0.114.0-alpha.1","v0.114.0","v0.114.0-alpha.0","v0.113.0","v0.112.0","v0.111.2","v0.111.1","v0.111.0","v0.110.1","v0.110.0","v0.109.0","v0.108.0","v0.107.0","v0.106.0","v0.105.0","v0.104.0","v0.103.0","v0.103.0-alpha.0","v0.102.0","v0.101.0","v0.100.0","v0.99.2","v0.99.1","v0.99.0","v0.98.0","v0.97.0","v0.96.1","v0.96.0","v0.95.1","v0.95.0","v0.94.0","v0.93.0","v0.92.0","v0.91.0","v0.90.0","v0.90.0-alpha.1","v0.89.0","v0.88.0","v0.87.0","v0.86.0","v0.85.0","v0.84.0","v0.83.0","v0.82.0","v0.81.0","v0.80.0-alpha.2","v0.80.0","v0.80.0-alpha.1","v0.80.0-alpha.0","v0.79.0","v0.78.0","v0.77.0","v0.76.1","v0.76.0","v0.75.0","v0.74.0","v0.73.0","v0.72.0","v0.71.0","v0.70.1","v0.70.0","v0.69.1","v0.69.0","v0.68.1","v0.68.0","v0.67.0","v0.66.0","v0.65.0","v0.64.0","v0.63.0","v0.62.0","v0.61.0","v0.60.0","v0.59.0","v0.58.1-alpha.0","v0.58.0","v0.57.0","v0.56.0","v0.56.0-alpha.1","v0.56.0-alpha.0","v0.55.2-pre","v0.55.2","v0.55.1","v0.55.0","v0.54.1","v0.54.0-alpha.5","v0.54.0","v0.54.0-alpha.4","v0.54.0-alpha.3","v0.54.0-alpha.2","v0.54.0-alpha.1","v0.54.0-alpha.0","v0.53.0","v0.53.0-alpha.2","v0.53.0-alpha.1","v0.53.0-alpha.0","v0.52.0","v0.52.0-alpha.0","v0.51.2","v0.51.1","v0.51.0","v0.51.0-alpha.2","v0.51.0-alpha.1","v0.51.0-alpha.0","v0.50.0","v0.50.0-alpha.4","v0.50.0-alpha.3","v0.50.0-alpha.2","v0.50.0-alpha.1","v0.50.0-alpha.0","v0.49.0","v0.49.0-alpha.1","v0.48.0","v0.47.0-alpha.4","v0.47.0-alpha.3","v0.47.0-alpha.2","v0.47.0-alpha.1","v0.46.0","v0.45.3","v0.45.2","v0.45.1","v0.45.0","v0.44.0-alpha.4","v0.44.0-alpha.3","v0.44.0-alpha.2","v0.44.0-alpha.1","v0.43.1","v0.43.0","v0.42.0-alpha.5","v0.42.0-alpha.4","v0.42.0-alpha.3","v0.42.0-alpha.2","v0.42.0-alpha.1","v0.41.1","v0.41.0","v0.40.0","v0.40.0-rc.1","v0.39.1","v0.39.0","v0.39.0-alpha.1","v0.38.0","v0.37.0","v0.36.0","v0.35.0","v0.34.0","v0.33.3","v0.33.2","v0.33.1","v0.33.0","v0.32.0","v0.31.1","v0.31.0","v0.30.0","v0.29.0","v0.28.1","v0.28.0","v0.27.1","v0.27.0","v0.26.3","v0.26.2","v0.26.1","v0.26.0","v0.25.0","v0.24.0","v0.23.0","v0.22.0","v0.21.2","v0.21.1","v0.21.0","v0.20.0","v0.19.1","v0.19.0","v0.18.1","v0.18.0","v0.17.2","v0.17.1","v0.17.0","v0.16.0","v0.15.1","v0.15.0","v0.14.0","v0.13.1","v0.13.0","v0.12.0","v0.11.2","v0.11.1","v0.11.0","v0.10.0","v0.9.1","v0.8.0","v0.9.0","v0.7.1","v0.7.0","v0.6.0","v0.5.0","v0.4.0","v0.3.0","v0.2.0","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54638.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}