title: Stack exhaustion in Glob on certain paths in io/fs
description: Uncontrolled recursion in Glob in io/fs before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a path which contains a large number of path separators.
problem types: CWE-674: Uncontrolled Recursion
affected:
{
vendor: Go standard library
product: io/fs
collectionURL: https://pkg.go.dev
packageName: io/fs
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: Glob
defaultStatus: unaffected
}