Asymmetric Resource Consumption (Amplification) in gosaml2 - #VU144266
Published: August 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to asymmetric resource consumption in SAMLServiceProvider.ValidateEncodedResponse when processing a DEFLATE-compressed XML response during round-trip validation. A remote attacker can send a specially crafted SAML response containing many tiny XML elements to cause a denial of service.
A small compressed request can expand into a size-limited XML document that triggers disproportionately large memory allocation and sustained allocator and garbage-collector pressure, and concurrent requests can exhaust server memory.