Loop with Unreachable Exit Condition ('Infinite Loop') Affecting golang-github-ulikunitz-xz package, versions <0.5.6-2


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.44% (70th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-GOLANGGITHUBULIKUNITZXZ-1277499
  • published29 Apr 2021
  • disclosed28 Apr 2021

Introduced: 28 Apr 2021

CVE-2021-29482  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade Debian:unstable golang-github-ulikunitz-xz to version 0.5.6-2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream golang-github-ulikunitz-xz package and not the golang-github-ulikunitz-xz package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The problem has been fixed in release v0.5.8. As a workaround users can limit the size of the compressed file input to a reasonable size for their use case. The standard library had recently the same issue and got the CVE-2020-16845 allocated.

CVSS Base Scores

version 3.1