Uncontrolled Recursion Affecting std/compress/gzip package, versions <1.17.12>=1.18.0-0 <1.18.4


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.94% (79th 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-GOLANG-STDCOMPRESSGZIP-14564381
  • published6 Jan 2026
  • disclosed20 Jul 2022
  • creditUnknown

Introduced: 20 Jul 2022

CVE-2022-30631  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade std/compress/gzip to version 1.17.12, 1.18.4 or higher.

Overview

std/compress/gzip is a Go standard library package std/compress/gzip

Affected versions of this package are vulnerable to Uncontrolled Recursion.

Go Vulnerability Report:
via the Reader.Read function when processing an archive that contains a large number of concatenated zero-length compressed files. An attacker can cause a panic and exhaust the stack by supplying such a crafted archive.

CVSS Base Scores

version 4.0
version 3.1