GitHub Advisoryadvisory · RubyGems
GHSA-jw9c-mfg7-9rx2 SAML authentication bypass via Incorrect XPath selector
CRITICAL
Official page ↗
- Aliases
- CVE-2024-45409
- Ecosystem
- RubyGems
- Packages
- ruby-saml
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
- Weaknesses
- CWE-347
- Reviewed
- 2024-09-10
Affected packages
• RubyGems ruby-saml: < 1.12.3 → fixed in 1.12.3
• RubyGems ruby-saml: >= 1.13.0, < 1.17.0 → fixed in 1.17.0
Description
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])
Related
Alias · CVE (1)
- CVE-2024-45409 The Ruby SAML library is for implementing the client side of a SAML authorization. vulnerability
Weakness · CWE (1)
- CWE-347 Improper Verification of Cryptographic Signature weakness
References
- https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2 web
- https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvq web
- https://nvd.nist.gov/vuln/detail/CVE-2024-45409 advisory
- https://github.com/SAML-Toolkits/ruby-saml/commit/1ec5392bc506fe43a02dbb66b68741051c5ffeae web
- https://github.com/SAML-Toolkits/ruby-saml/commit/4865d030cae9705ee5cdb12415c654c634093ae7 web
- https://github.com/omniauth/omniauth-saml/commit/4274e9d57e65f2dcaae4aa3b2accf831494f2ddd web
- https://github.com/SAML-Toolkits/ruby-saml package
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/CVE-2024-45409.yml web
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/GHSA-cvp8-5r8g-fhvq.yml web
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2024-45409.yml web