CVE-2024-45409
published critical CVSS 3.1 · 10.0The Ruby SAML library vulnerable to a SAML authentication bypass via Incorrect XPath selector
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SAML-Toolkits | — | ruby-saml< 1.12.3 · >= 1.13.0, < 1.17.0 | Affected | Not stated | GitHub_M |
| onelogin | — | ruby-saml0 to < 1.12.3 · 1.13.0 to < 1.17.0 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| omniauth | — | omniauth-saml0 through 2.1.0 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Debian | bookworm | ruby-saml | Advisory build | 1.13.0-1+deb12u1 | DSA-5774-1 |
| Ubuntu | bionic | ruby-saml | Advisory build | 1.7.2-1ubuntu0.1~esm1 | USN-7309-1 |
| Debian | bullseye | ruby-saml | Advisory build | 1.11.0-1+deb11u1 | DLA-3949-1 |
| Ubuntu | focal | ruby-saml | Advisory build | 1.11.0-1ubuntu0.1 | USN-7309-1 |
| Ubuntu | jammy | ruby-saml | Advisory build | 1.13.0-1ubuntu0.1 | USN-7309-1 |
Show 2 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | ruby-saml | Advisory build | 1.15.0-1ubuntu0.24.04.1 | USN-7309-1 |
| Ubuntu | xenial | ruby-saml | Advisory build | 1.1.2-1ubuntu1+esm1 | USN-7309-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| SAML-Toolkits | ruby-saml | < 1.12.3 (affected)>= 1.13.0, < 1.17.0 (affected) | GitHub_M · cna |
| onelogin | ruby-saml | 0 to < 1.12.3 (affected · custom)1.13.0 to < 1.17.0 (affected · custom)Default: unknown | CISA-ADP · adp |
| omniauth | omniauth-saml | 0 through 2.1.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-347 CWE-347: Improper Verification of Cryptographic Signature
References
8- https://github.com/SAML-Toolkits/ruby-saml/commit/1ec5392bc506fe43a02dbb66b68741051c5ffeae
- https://github.com/SAML-Toolkits/ruby-saml/commit/4865d030cae9705ee5cdb12415c654c634093ae7
- https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2
- https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvq
- https://lists.debian.org/debian-lts-announce/2024/11/msg00006.html
- https://news.ycombinator.com/item?id=41586031
- https://security.netapp.com/advisory/ntap-20240926-0008/
- https://ssoready.com/blog/engineering/ruby-saml-pwned-by-xml-signature-wrapping-attacks/
Provider assertions
3GitHub_M · cna
The Ruby SAML library vulnerable to a SAML authentication bypass via Incorrect XPath selector
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 66682b1dfe6bebe71177c4ca88aacfd13dff5213c00be82dcf3868e4a2081680
- Ingested
- 04 Nov 2026, 00:11:56 UTC
- Source record
- Official CVE record