title: Stack exhaustion when reading certain archives in compress/gzip
description: Uncontrolled recursion in Reader.Read in compress/gzip before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via an archive containing a large number of concatenated 0-length compressed files.
problem types: CWE-674: Uncontrolled Recursion
affected:
{
vendor: Go standard library
product: compress/gzip
collectionURL: https://pkg.go.dev
packageName: compress/gzip
versions:
version: 0, lessThan: 1.17.12, status: affected, versionType: semver
version: 1.18.0-0, lessThan: 1.18.4, status: affected, versionType: semver
programRoutines:
name: Reader.Read
defaultStatus: unaffected
}