Live threats

All CVEs / Gosaml2 Project

CVE-2023-26483Gosaml2 Project Gosaml2

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
1.0%
probability of exploitation in 30 days · percentile 63
Auth required
No
Published
Mar 3, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-409
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What happens

gosaml2 is a Pure Go implementation of SAML 2.0. 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. 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. This issue is fixed in version 0.9.0.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gosaml2.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/russellhaering/gosaml2 < 0.9.0 0.9.0 go get github.com/russellhaering/gosaml2@v0.9.0
Go github.com/russellhaering/gosaml2 < 0.9.0 0.9.0 go get github.com/russellhaering/gosaml2@v0.9.0

Per OSV / GitHub Advisories (GHSA-6gc3-crp7-25w5, GO-2023-1602). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
gosaml2_projectgosaml2< 0.9.0

Official sources

References

Links published by the sources. Open them with care.