CVE-2024-45409
CRITICAL10.0EPSS 44.6%SAML authentication bypass via Incorrect XPath selector
Published: 9/11/2024Modified: 4/28/2026
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.
Affected packages (6)
- Bitnami/gitlabfrom 0, < 16.11.10, >= 17.0.0, < 17.0.8, >= 17.1.0, < 17.1.8, >= 17.2.0, < 17.2.7, >= 17.3.0, < 17.3.3
- Debian/ruby-samlfrom 0, < 1.11.0-1+deb11u1
- Debian/ruby-samlfrom 0, < 1.11.0-1+deb11u1
- Debian/ruby-samlfrom 0, < 1.13.0-1+deb12u1
- RubyGems/omniauth-saml>= 2.0.0, < 2.1.2
- RubyGems/ruby-samlfrom 0, < 1.12.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N |
| osv | CVSS 3.1 | CRITICAL10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
References (17)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-45409
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-45409
- PATCHhttps://github.com/omniauth/omniauth-saml
- PATCHhttps://github.com/SAML-Toolkits/ruby-saml
- WEBhttps://github.com/omniauth/omniauth-saml/commit/4274e9d57e65f2dcaae4aa3b2accf831494f2ddd
- WEBhttps://github.com/omniauth/omniauth-saml/commit/6c681fd082ab3daf271821897a40ab3417382e29
- WEBhttps://github.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvq
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/CVE-2024-45409.yml
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/GHSA-cvp8-5r8g-fhvq.yml
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2024-45409.yml
- WEBhttps://github.com/SAML-Toolkits/ruby-saml/commit/1ec5392bc506fe43a02dbb66b68741051c5ffeae
- WEBhttps://github.com/SAML-Toolkits/ruby-saml/commit/4865d030cae9705ee5cdb12415c654c634093ae7
- WEBhttps://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2
- WEBhttps://lists.debian.org/debian-lts-announce/2024/11/msg00006.html
- WEBhttps://news.ycombinator.com/item?id=41586031
- WEBhttps://security.netapp.com/advisory/ntap-20240926-0008/
- WEBhttps://ssoready.com/blog/engineering/ruby-saml-pwned-by-xml-signature-wrapping-attacks/