{"id":"CVE-2023-26483","published":"2023-03-03T22:02:44Z","modified":"2025-02-25T15:02:24Z","title":"gosaml2 vulnerable to Denial of Service via deflate decompression bomb","vendor":"russellhaering","product":"gosaml2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01036,"percentile":0.63114,"provenance":"source"},"cwes":[{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"}],"references":[{"url":"https://github.com/russellhaering/gosaml2/security/advisories/GHSA-6gc3-crp7-25w5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/russellhaering/gosaml2/commit/f9d66040241093e8702649baff50cc70d2c683c0","tags":["x_refsource_MISC"]},{"url":"https://github.com/russellhaering/gosaml2/releases/tag/v0.9.0","tags":["x_refsource_MISC"]},{"url":"https://pkg.go.dev/vuln/GO-2023-1602","tags":["x_refsource_MISC"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":12.62},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"russellhaering","affectedVersions":[{"vendor":"russellhaering","product":"gosaml2","versions":["< 0.9.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-25T14:31:47.488843Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/russellhaering/gosaml2","vulnerableRanges":["<0.9.0"],"patched":["0.9.0"],"from":["GHSA-6gc3-crp7-25w5","GO-2023-1602"],"provenance":"source"}],"summary":{"text":"The gosaml2 library, a pure Go implementation of SAML 2.0 used by Service Providers for SAML authentication, contains a flaw in how it handles deflate-compressed data, which is a type of improper handling of highly compressed data. An unauthenticated remote attacker with network access can send a specially crafted deflate-compressed request that consumes far more memory during processing than its original size, potentially exhausting memory and causing the process to be killed, with no user interaction or configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:03Z"},"euvd":{"id":"EUVD-2023-0904","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-golang-go-cve-2020-7711","parents":[{"from":"CVE-2020-29509","to":"CVE-2023-26483","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["decode_response.go"],"commits":["https://github.com/russellhaering/gosaml2/commit/42606dafba60c58c458f14f75c4c230459672ab9","https://github.com/russellhaering/gosaml2/commit/f9d66040241093e8702649baff50cc70d2c683c0"],"basis":"rarely changed file"}]},{"from":"CVE-2020-7731","to":"CVE-2023-26483","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["decode_response.go"],"commits":["https://github.com/russellhaering/gosaml2/commit/66e3b7affd622b8b24ea1e18845f045e46b23424","https://github.com/russellhaering/gosaml2/commit/f9d66040241093e8702649baff50cc70d2c683c0"],"basis":"shared function","functions":["validateAssertionSignatures"]}]}]}}