CVE-2024-45409: The Ruby SAML library vulnerable to a SAML authentication bypass via Incorrect XPath selector
Last updated 23 September 2024
Other sources
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 (ahacker1@securesaml.com)
— GitHub
SAML-Toolkits Ruby SAML could allow a remote attacker to bypass security restrictions, caused by improper validation of signature of the SAML Response. By sending a specially crafted SAML Response/Assertion with arbitrary contents, an attacker could exploit this vulnerability to log in as arbitrary user on the system.
— IBM
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.
— MITRE
Updates dependencies omniauth-saml to version 2.2.1 and ruby-saml to 1.17.0 to mitigate CVE-2024-45409. This security vulnerability applies only to instances which have configured SAML based authentication.
— GitLab
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-45409?
CVE-2024-45409 has been assigned a high severity rating due to its potential for allowing unauthenticated attackers to forge SAML Responses.
How do I fix CVE-2024-45409?
To fix CVE-2024-45409, upgrade ruby-saml to version 1.17.0 or 1.12.3 or higher.
Which versions of Ruby-SAML are affected by CVE-2024-45409?
Versions of Ruby-SAML from 1.0.0 to 1.16.0 are affected by CVE-2024-45409.
Can CVE-2024-45409 be exploited remotely?
Yes, CVE-2024-45409 can be exploited remotely by attackers who have access to any signed SAML document.
Is authentication required to exploit CVE-2024-45409?
No, CVE-2024-45409 can be exploited by unauthenticated attackers.