RubySec

Providing security resources for the Ruby community

CVE-2024-45409 (ruby-saml): SAML authentication bypass via Incorrect XPath selector

ADVISORIES

GEM

ruby-saml

SEVERITY

CVSS v3.x: 10.0 (Critical)

PATCHED VERSIONS

  • ~> 1.12.3
  • >= 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.