Skip to main content
← All vulnerabilities
CVE-2024-45409GHSA-JW9C-MFG7-9RX2BIT-GITLAB-2024-45409

The Ruby SAML library vulnerable to a SAML authentication bypass via Incorrect XPath selector

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.12.3, 1.17.0
2 proofs of concept on GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

The Ruby SAML library is for implementing the client side of a SAML authorization. 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 is fixed in 1.17.0 and 1.12.3.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • SAML-Toolkits ruby-saml

    fixed in 1.12.3; From 1.13.0 · fixed in 1.17.0

  • ruby-samlRubyGems

    fixed in 1.12.3

  • ruby-samlRubyGems

    From 1.13.0 · fixed in 1.17.0

References 6

GitHub · SAML-Toolkits/ruby-saml

GitHub · omniauth/omniauth-saml

GitHub · barkotenicholas/CVE-2024-45409

GitHub · synacktiv/CVE-2024-45409