Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS02Z2MzLWNycDctMjV3Nc4AAx6h

gosaml2 vulnerable to Denial Of Service Via Deflate Decompression Bomb

Impact

SAML Service Providers using this library for SAML authentication support are likely susceptible to Denial of Service attacks. A bug in this library enables attackers to craft a deflate-compressed request which will consume significantly more memory during processing than the size of the original request. This may eventually lead to memory exhaustion and the process being killed.

Mitigation

The maximum compression ratio achievable with deflate is 1032:1, so by limiting the size of bodies passed to gosaml2, limiting the rate and concurrency of calls, and ensuring that lots of memory is available to the process it may be possible to help Go's garbage collector "keep up".

Implementors are encouraged not to rely on this.

Patches

This issue is addressed in v0.9.0

Permalink: https://github.com/advisories/GHSA-6gc3-crp7-25w5
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02Z2MzLWNycDctMjV3Nc4AAx6h
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 1 year ago
Updated: 11 months ago


CVSS Score: 5.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Identifiers: GHSA-6gc3-crp7-25w5, CVE-2023-26483
References: Repository: https://github.com/russellhaering/gosaml2
Blast Radius: 11.6

Affected Packages

go:github.com/russellhaering/gosaml2
Dependent packages: 65
Dependent repositories: 155
Downloads:
Affected Version Ranges: < 0.9.0
Fixed in: 0.9.0
All affected versions: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.8.1
All unaffected versions: 0.9.0, 0.9.1