title: Stack exhaustion from deeply nested XML documents in encoding/xml
description: Uncontrolled recursion in Decoder.Skip in encoding/xml before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a deeply nested XML document.
problem types: CWE-674: Uncontrolled Recursion
affected:
{
vendor: Go standard library
product: encoding/xml
collectionURL: https://pkg.go.dev
packageName: encoding/xml
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: Decoder.Skip
defaultStatus: unaffected
}