CVE-2024-45409

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

Description

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.

Category

10.0
CVSS
Severity: Critical
CVSS 3.1 •
EPSS 14.91% Top 10%
Vendor Advisory github.com Vendor Advisory github.com
Affected: SAML-Toolkits ruby-saml
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-45409?
CVE-2024-45409 has been scored as a critical severity vulnerability.
How to fix CVE-2024-45409?
To fix CVE-2024-45409, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-45409 being actively exploited in the wild?
It is possible that CVE-2024-45409 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~15% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-45409?
CVE-2024-45409 affects SAML-Toolkits ruby-saml.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.