CVE-2024-45409: critical vulnerability in SAML-Toolkits ruby-saml
The Ruby SAML library vulnerable to a SAML authentication bypass via Incorrect XPath selector
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
77Vexday Risk Score
Prioritize patching. It exploitation observed by VulnCheck, has an official Brazilian government alert and has a public proof of concept.
ssvc Actcvss 10epss 11%
from disclosure to weapon27 days
Published on NVDSep 10
1st PoC+27d
VulnCheck+35d
Official alert in Brazil
Brazil's federal government published an alert, recommendation or bulletin that cites this vulnerability.
- CTIR Gov · ALERTA 22/2024Vulnerabilidades críticas no GitLabread on gov.br ↗
Source: CTIR Gov (GSI) and CISC Gov.br, under the CC BY-ND 3.0 license.
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Affected products
SAML-Toolkits · ruby-samlpublic PoCs found — 3
githubgithub.com/synacktiv/CVE-2024-45409★ 83vulncheckvulncheck.com/xdb/bbbf2dd62a91unverifiedvulncheckvulncheck.com/xdb/47e63f747633unverified⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.
Related CVEs — SAML-Toolkits ruby-saml
In the same product, most dangerous first.
CVE-2025-25292CRITICALRuby SAML vulnerable to SAML authentication bypass due to namespace handling (parser differential)EPSS 65.1%CVE-2025-25291CRITICALruby-saml vulnerable to SAML authentication bypass due to DOCTYPE handling (parser differential)EPSS 21.0%CVE-2025-25293HIGHruby-saml vulnerable to Remote Denial of Service (DoS) with compressed SAML responsesEPSS 1.5%CVE-2025-54572MEDIUMRuby SAML DOS vulnerability with large SAML responseEPSS 0.5%CVE-2025-66567CRITICALruby-saml has a SAML authentication bypass due to namespace handling (parser differential)EPSS 0.4%CVE-2025-66568CRITICALruby-saml Libxml2 Canonicalization errors can bypass Digest/Signature validationEPSS 0.3%
References
https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvqhttps://github.com/SAML-Toolkits/ruby-saml/commit/1ec5392bc506fe43a02dbb66b68741051c5ffeaehttps://github.com/SAML-Toolkits/ruby-saml/commit/4865d030cae9705ee5cdb12415c654c634093ae7https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2https://lists.debian.org/debian-lts-announce/2024/11/msg00006.htmlhttps://news.ycombinator.com/item?id=41586031https://security.netapp.com/advisory/ntap-20240926-0008/https://ssoready.com/blog/engineering/ruby-saml-pwned-by-xml-signature-wrapping-attacks/