{"id":"CVE-2020-16845","aliases":["CVE-2020-16845","GHSA-q6gq-997w-f55g","BIT-GOLANG-2020-16845","GO-2021-0142"],"related":[],"kind":"vulnerability","state":"published","title":"Unbounded read from invalid inputs in encoding/binary","summary":"Go before 1.13.15 and 14.x before 1.14.7 can have an infinite read loop in ReadUvarint and ReadVarint in encoding/binary via invalid inputs.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Go before 1.13.15 and 14.x before 1.14.7 can have an infinite read loop in ReadUvarint and ReadVarint in encoding/binary via invalid inputs.","source":"cvelist"},{"lang":"en","text":"### Withdrawn Advisory\nThis advisory has been withdrawn because alerts cannot be issued for the Go standard library at this time.\n\n### Original Description\nGo before 1.13.15 and 14.x before 1.14.7 can have an infinite read loop in ReadUvarint and ReadVarint in encoding/binary via invalid inputs.","format":"markdown","source":"ghsa"},{"lang":"en","text":"ReadUvarint and ReadVarint can read an unlimited number of bytes from invalid inputs.\n\nCertain invalid inputs to ReadUvarint or ReadVarint can cause these functions to read an unlimited number of bytes from the ByteReader parameter before returning an error. This can lead to processing more input than expected when the caller is reading directly from a network and depends on ReadUvarint or ReadVarint only consuming a small, bounded number of bytes, even from invalid inputs.","format":"markdown","source":"go"},{"lang":"es","text":"Go versiones anteriores a 1.13.15 y versiones 14.x anteriores a 1.14.7, puede presentar un bucle de lectura infinito en las funciones ReadUvarint y ReadVarint en encoding/binary por medio de entradas no válidas","source":"nvd"}],"published":"2020-08-06T17:03:33.000Z","modified":"2026-09-08T08:47:46.891Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-835"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.5.8"}],"ecosystem":"Go","package":"github.com/ulikunitz/xz","purl":"pkg:golang/github.com/ulikunitz/xz","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.13.15"},{"type":"semver","introduced":"1.14.0-0","status":"affected","fixed":"1.14.7"}],"ecosystem":"Go","package":"stdlib","purl":"pkg:golang/stdlib","source":"go"},{"ranges":[{"status":"affected","fixed":"1.13.15"},{"status":"affected","introduced":"1.14","fixed":"1.14.7"}],"vendor":"golang","product":"go","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"15.1"},{"status":"affected","version":"15.2"}],"vendor":"opensuse","product":"leap","cpe":"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"},{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"31"},{"status":"affected","version":"32"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.13.15"},{"type":"semver","introduced":"1.14.0","status":"affected","fixed":"1.14.7"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"https://groups.google.com/forum/#%21topic/golang-announce/_ulYYcIWg3Q","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00021.html","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00028.html","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6RCFJTMKHY5ICGEM5BUFUEDDGSPJ25XU/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KWRBAH4UZJO3RROQ72SYCUPFCJFA22FO/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WV2VWKFTH4EJGZBZALVUJQJOAQB5MDQ4/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00029.html","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00030.html","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/11/msg00037.html","tags":["advisory","mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/11/msg00038.html","tags":["advisory","mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.debian.org/security/2021/dsa-4848","tags":["advisory","third-party-advisory","vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpuApr2021.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://groups.google.com/forum/#%21topic/golang-announce/NyPIaucMgXo","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20200924-0002/","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-16845","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/ulikunitz/xz/issues/35","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ulikunitz/xz/commit/69c6093c7b2397b923acf82cb378f55ab2652b9b","tags":["web"],"sources":["ghsa"]},{"url":"https://groups.google.com/forum/#!topic/golang-announce/NyPIaucMgXo","tags":["web"],"sources":["ghsa"]},{"url":"https://groups.google.com/forum/#!topic/golang-announce/_ulYYcIWg3Q","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6RCFJTMKHY5ICGEM5BUFUEDDGSPJ25XU","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KWRBAH4UZJO3RROQ72SYCUPFCJFA22FO","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WV2VWKFTH4EJGZBZALVUJQJOAQB5MDQ4","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20200924-0002","tags":["web"],"sources":["ghsa"]},{"url":"https://go.dev/cl/247120","tags":["fix"],"sources":["go"]},{"url":"https://go.googlesource.com/go/+/027d7241ce050d197e7fabea3d541ffbe3487258","tags":["fix"],"sources":["go"]},{"url":"https://go.dev/issue/40618","tags":["report"],"sources":["go"]},{"url":"https://groups.google.com/g/golang-announce/c/NyPIaucMgXo","tags":["web"],"sources":["go"]}],"credits":["Diederik Loerakker","Jonny Rhea","Raúl Kripalani","Preston Van Loon"],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-16845","url":"https://www.cve.org/CVERecord?id=CVE-2020-16845","licence":"CVE Terms of Use","modified":"2024-08-04T13:45:33.920Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q6gq-997w-f55g","url":"https://github.com/advisories/GHSA-q6gq-997w-f55g","licence":"CC-BY-4.0","modified":"2025-10-14T19:37:19.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2021-0142","url":"https://pkg.go.dev/vuln/GO-2021-0142","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-16845","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-16845","licence":"Public domain","modified":"2026-06-17T02:58:07.777Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2020-16845","url":"https://osv.dev/vulnerability/BIT-GOLANG-2020-16845","licence":"Apache-2.0","modified":"2026-09-08T08:47:46.891Z"}],"updatedAt":"2026-11-25T22:57:53.842Z","epss":{"score":0.04861,"percentile":0.92229,"date":"2026-12-01T12:00:22.000Z"}}