CVE-2023-28119: Denial Of Service Via Deflate Decompression Bomb in github.com/crewjam/saml

github.com/crewjam/saml Updated 02 Oct 2025

Summary

23/08/2023
Yes i
High
7.5

CVE-2023-28119: Denial of service via deflate compression bomb in github.com/crewjam/saml. Affects github.com/crewjam/saml versions < 0.4.13. Fixed in 0.4.13. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

github.com/crewjam/saml is a Go package that provides functionality for processing SAML (Security Assertion Markup Language) requests and responses. It is commonly used in applications that require SAML-based authentication and authorization. This package allows developers to handle SAML assertions, generate SAML responses, and validate SAML signatures. However, a vulnerability has been discovered in the package that could lead to a Denial of Service (DoS) attack.

Vulnerability Detail

The vulnerability in github.com/crewjam/saml arises from the improper handling of input data during the decompression process using the Deflate algorithm. The package uses flate.NewReader, which does not limit the size of the input. An attacker can exploit this by sending a large amount of data in the HTTP request, causing the server-side decompression to consume excessive resources and potentially crash the process. By repeatedly sending the same request, an attacker can reliably trigger a DoS condition. The severity of this vulnerability is rated as HIGH with a CVSS score of 7.5.

How To Fix

Latest published version: v0.5.1 as of 23 Oct 2026

go get github.com/crewjam/saml@v0.5.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.4.13

This is the first release that contains the fix.

go get github.com/crewjam/saml@v0.4.13

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to apply the fix mentioned in the 'how_to_fix' section.

Conclusion

The vulnerability in github.com/crewjam/saml can be exploited to cause a Denial of Service (DoS) condition. It is crucial for developers to update their usage of the package to version 0.4.13 or later to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/crewjam/saml →

Share this vulnerability

FAQ

github.com/crewjam/saml is a Go package used for processing SAML requests and responses in applications that require SAML-based authentication and authorization.

This vulnerability can be exploited by an attacker to cause a Denial of Service (DoS) condition, potentially crashing the server process.

To fix this vulnerability, update your usage of github.com/crewjam/saml to version 0.4.13 or later.

There is no known workaround for this vulnerability. It is recommended to apply the fix mentioned in the 'how_to_fix' section.

The severity of this vulnerability is rated as HIGH with a CVSS score of 7.5.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/crewjam/saml.

How To Fix

Latest published version: v0.5.1 as of 23 Oct 2026

go get github.com/crewjam/saml@v0.5.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.4.13

This is the first release that contains the fix.

go get github.com/crewjam/saml@v0.4.13

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback