# CVE-2020-16845: Unbounded read from invalid inputs in encoding/binary

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `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): 4.86%, higher than 92% of CVEs (2026-12-01)
- Published: 2020-08-06T17:03:33.000Z
- Modified: 2026-09-08T08:47:46.891Z
- Also known as: GHSA-q6gq-997w-f55g, BIT-GOLANG-2020-16845, GO-2021-0142
- Weaknesses: CWE-835
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/ulikunitz/xz (Go): before 0.5.8
- stdlib (Go): before 1.13.15; from 1.14.0-0 before 1.14.7
- golang go: before 1.13.15; from 1.14 before 1.14.7
- opensuse leap: 15.1; 15.2
- debian debian_linux: 9.0; 10.0
- fedoraproject fedora: 31; 32
- golang (Bitnami): before 1.13.15; from 1.14.0 before 1.14.7

## Every score

- 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`
- NVD: 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`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://groups.google.com/forum/#%21topic/golang-announce/_ulYYcIWg3Q> (web)
- <http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00021.html> (advisory, mailing-list, third-party-advisory, vendor-advisory, web)
- <http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00028.html> (advisory, mailing-list, third-party-advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6RCFJTMKHY5ICGEM5BUFUEDDGSPJ25XU/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KWRBAH4UZJO3RROQ72SYCUPFCJFA22FO/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WV2VWKFTH4EJGZBZALVUJQJOAQB5MDQ4/> (vendor-advisory, web)
- <http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00029.html> (advisory, mailing-list, third-party-advisory, vendor-advisory, web)
- <http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00030.html> (advisory, mailing-list, third-party-advisory, vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2020/11/msg00037.html> (advisory, mailing-list, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2020/11/msg00038.html> (advisory, mailing-list, third-party-advisory, web)
- <https://www.debian.org/security/2021/dsa-4848> (advisory, third-party-advisory, vendor-advisory, web)
- <https://www.oracle.com/security-alerts/cpuApr2021.html> (advisory, third-party-advisory, web)
- <https://groups.google.com/forum/#%21topic/golang-announce/NyPIaucMgXo> (web)
- <https://security.netapp.com/advisory/ntap-20200924-0002/> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-16845> (advisory, web)
- <https://github.com/ulikunitz/xz/issues/35> (web)
- <https://github.com/ulikunitz/xz/commit/69c6093c7b2397b923acf82cb378f55ab2652b9b> (web)
- <https://groups.google.com/forum/#!topic/golang-announce/NyPIaucMgXo> (web)
- <https://groups.google.com/forum/#!topic/golang-announce/_ulYYcIWg3Q> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6RCFJTMKHY5ICGEM5BUFUEDDGSPJ25XU> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KWRBAH4UZJO3RROQ72SYCUPFCJFA22FO> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WV2VWKFTH4EJGZBZALVUJQJOAQB5MDQ4> (web)
- <https://security.netapp.com/advisory/ntap-20200924-0002> (web)
- <https://go.dev/cl/247120> (fix)
- <https://go.googlesource.com/go/+/027d7241ce050d197e7fabea3d541ffbe3487258> (fix)
- <https://go.dev/issue/40618> (report)
- <https://groups.google.com/g/golang-announce/c/NyPIaucMgXo> (web)

## Sources

- CVE List: [CVE-2020-16845](https://www.cve.org/CVERecord?id=CVE-2020-16845), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-q6gq-997w-f55g](https://github.com/advisories/GHSA-q6gq-997w-f55g), CC-BY-4.0, modified 2025-10-14
- Go Vulnerability Database: [GO-2021-0142](https://pkg.go.dev/vuln/GO-2021-0142), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2020-16845](https://nvd.nist.gov/vuln/detail/CVE-2020-16845), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2020-16845](https://osv.dev/vulnerability/BIT-GOLANG-2020-16845), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-16845 · Whole record: https://cve.day/CVE-2020-16845.json · Rebuilt by cve.day 2026-11-25T22:57:53.842Z
