Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/ulikunitz/xz
  4. ›
  5. CVE-2020-16845

CVE-2020-16845: Loop with Unreachable Exit Condition ('Infinite Loop')

December 16, 2021

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.

References

  • lists.opensuse.org/opensuse-security-announce/2020-08/msg00021.html
  • lists.opensuse.org/opensuse-security-announce/2020-08/msg00028.html
  • lists.opensuse.org/opensuse-security-announce/2020-09/msg00029.html
  • lists.opensuse.org/opensuse-security-announce/2020-09/msg00030.html
  • github.com/advisories/GHSA-q6gq-997w-f55g
  • github.com/ulikunitz/xz/commit/69c6093c7b2397b923acf82cb378f55ab2652b9b
  • github.com/ulikunitz/xz/issues/35
  • groups.google.com/forum/
  • groups.google.com/forum/
  • lists.debian.org/debian-lts-announce/2020/11/msg00037.html
  • lists.debian.org/debian-lts-announce/2020/11/msg00038.html
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6RCFJTMKHY5ICGEM5BUFUEDDGSPJ25XU/
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KWRBAH4UZJO3RROQ72SYCUPFCJFA22FO/
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O/
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WV2VWKFTH4EJGZBZALVUJQJOAQB5MDQ4/
  • nvd.nist.gov/vuln/detail/CVE-2020-16845
  • security.netapp.com/advisory/ntap-20200924-0002/
  • www.debian.org/security/2021/dsa-4848
  • www.oracle.com/security-alerts/cpuApr2021.html

Code Behaviors & Features

Detect and mitigate CVE-2020-16845 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.5.8

Fixed versions

  • 0.5.8

Solution

Upgrade to version 0.5.8 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-707: Improper Neutralization
  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

go/github.com/ulikunitz/xz/CVE-2020-16845.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:30 +0000.