Skip to content

Improve the inflate method to prevent potential DoS vulnerability in Zlib::Inflate#779

Merged
pitbulk merged 2 commits intomasterfrom
master_improve_inflate
Nov 23, 2025
Merged

Improve the inflate method to prevent potential DoS vulnerability in Zlib::Inflate#779
pitbulk merged 2 commits intomasterfrom
master_improve_inflate

Conversation

@pitbulk
Copy link
Copy Markdown
Collaborator

@pitbulk pitbulk commented Nov 23, 2025

Improve the inflate method: Prevent potential DoS vulnerability in Zlib::Inflate by limiting the maximum decompressed size. The data is now inflated in chunks.

…vulnerability in Zlib::Inflate by limiting the maximum decompressed size. The data is now inflated in chunks.
@pitbulk pitbulk changed the title Refactor decoding. Improve the inflate method to prevent potential DoS vulnerability in Zlib::Inflate Improve the inflate method to prevent potential DoS vulnerability in Zlib::Inflate Nov 23, 2025
@pitbulk pitbulk merged commit 07bc2bc into master Nov 23, 2025
81 of 98 checks passed
benjaminwols added a commit to ansdelft/ruby-saml that referenced this pull request Feb 17, 2026
* Check message bytesize before Base64 validation

* Adapt tests to be able to execute signature validation sooner

* CI/CD: Update ubuntu version

* Add Ruby 3.4 to the CI

* Exclude Ubuntu-22.04 Ruby 2.2 from CI as it raises RubyGem/Bundler issues

* Release 1.18.1

* Update Changelog

* Fix several typos on the documentation and code. Add to the README how to force SP-Initiate flow and Prevent Reply Attacks

* Improve the inflate method to prevent potential DoS vulnerability in Zlib::Inflate (SAML-Toolkits#779)

Improve the inflate method. Prevent potential DoS vulnerability in Zlib::Inflate by limiting the maximum decompressed size. The data is now inflated in chunks.

* Add sponsors: Github, SerpApi

* Add warning about CVE-2025-66567 and CVE-2025-66568

CVE-2025-66567 and CVE-2025-66568 affects ruby-saml <= 1.12.4. Use ruby-saml 1.18.1 instead.

* Revise vulnerability notice for ruby-saml

Updated vulnerability notice to reflect affected versions.

* Fix wrong link

---------

Co-authored-by: Drew Blessing <[email protected]>
Co-authored-by: Sixto Martin <[email protected]>
Co-authored-by: Sixto Martin <[email protected]>
Co-authored-by: Sixto Martin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant