CVE-2024-45409: SAML authentication bypass via Incorrect XPath selector
Ruby-SAML in <= 12.2 and 1.13.0 <= 1.16.0 does not properly verify the signature of the SAML Response. An unauthenticated attacker with access to any signed saml document (by the IdP) can thus forge a SAML Response/Assertion with arbitrary contents. This would allow the attacker to log in as arbitrary user within the vulnerable system.
Published Sep 10, 2024 · Updated Sep 16, 2024
Affected packages
ruby-saml
- Ecosystem
- RubyGems
- Affected
- < 1.12.3
- Fixed in
- 1.12.3
- Check
bundle info ruby-saml
ruby-saml
- Ecosystem
- RubyGems
- Affected
- >= 1.13.0, < 1.17.0
- Fixed in
- 1.17.0
- Check
bundle info ruby-saml
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Ruby-SAML in <= 12.2 and 1.13.0 <= 1.16.0 does not properly verify the signature of the SAML Response. An unauthenticated attacker with access to any signed saml document (by the IdP) can thus forge a SAML Response/Assertion with arbitrary contents. This would allow the attacker to log in as arbitrary user within the vulnerable system.
This vulnerability was reported by ahacker1 of SecureSAML ([email protected])
Credited to ahacker1-securesaml.
References
- https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2
- https://github.com/SAML-Toolkits/ruby-saml/commit/1ec5392bc506fe43a02dbb66b68741051c5ffeae
- https://github.com/SAML-Toolkits/ruby-saml/commit/4865d030cae9705ee5cdb12415c654c634093ae7
- https://nvd.nist.gov/vuln/detail/CVE-2024-45409
- https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvq
- https://github.com/omniauth/omniauth-saml/commit/4274e9d57e65f2dcaae4aa3b2accf831494f2ddd
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/CVE-2024-45409.yml
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2024-45409.yml
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/GHSA-cvp8-5r8g-fhvq.yml
- https://github.com/advisories/GHSA-jw9c-mfg7-9rx2
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More RubyGems vulnerabilities
All RubyGems entriesCVE-2025-66567
Ruby-saml has a SAML authentication bypass due to namespace handling (parser differential)
critical9.3Dec 8, 2025CVE-2025-66568
Ruby-saml allows a Libxml2 Canonicalization error to bypass Digest/Signature validation
critical9.3Dec 8, 2025CVE-2025-25291
Ruby SAML allows a SAML authentication bypass due to DOCTYPE handling (parser differential)
critical9.8Mar 12, 2025CVE-2025-25292
Ruby SAML allows a SAML authentication bypass due to namespace handling (parser differential)
critical9.8Mar 12, 2025
