CVE-2024-45409
CRITICAL 9.8CVSS 3.1SAML authentication bypass via Incorrect XPath selector
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.
- Published
- 10 Sep 2024
- Last modified
- 4 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-347
- Also known as
- BIT-gitlab-2024-45409GHSA-jw9c-mfg7-9rx2
- Sources
- NVDJSONOSV GHSA-jw9c-mfg7-9rx2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | onelogin | ruby-samlcpe:2.3:a:onelogin:ruby-saml:*:*:*:*:*:*:*:* |
< 1.12.3 | 1.12.3 |
| NVD | onelogin | ruby-samlcpe:2.3:a:onelogin:ruby-saml:*:*:*:*:*:*:*:* |
>= 1.13.0, < 1.17.0 | 1.17.0 |
| NVD | omniauth | omniauth_samlcpe:2.3:a:omniauth:omniauth_saml:*:*:*:*:*:ruby:*:* |
<= 1.10.3 | |
| NVD | omniauth | omniauth_samlcpe:2.3:a:omniauth:omniauth_saml:2.0.0:*:*:*:*:ruby:*:* |
= 2.0.0 | |
| NVD | omniauth | omniauth_samlcpe:2.3:a:omniauth:omniauth_saml:2.1.0:*:*:*:*:ruby:*:* |
= 2.1.0 | |
| NVD | gitlab | gitlabcpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:* |
< 16.11.10 | 16.11.10 |
| NVD | gitlab | gitlabcpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:* |
>= 17.0.0, < 17.0.8 | 17.0.8 |
| NVD | gitlab | gitlabcpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:* |
>= 17.1.0, < 17.1.8 | 17.1.8 |
| NVD | gitlab | gitlabcpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:* |
>= 17.2.0, < 17.2.7 | 17.2.7 |
| NVD | gitlab | gitlabcpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:* |
>= 17.3.0, < 17.3.3 | 17.3.3 |
| OSV | RubyGems | ruby-saml | < 1.12.3 | 1.12.3 |
| OSV | RubyGems | ruby-saml | >= 1.13.0, < 1.17.0 | 1.17.0 |
References
- https://github.com/SAML-Toolkits/ruby-saml/commit/1ec5392bc506fe43a02dbb66b68741051c5ffeae · Patch, WEB
- https://github.com/SAML-Toolkits/ruby-saml/commit/4865d030cae9705ee5cdb12415c654c634093ae7 · Patch, WEB
- https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2 · Vendor Advisory, WEB
- https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvq · Vendor Advisory, WEB
- 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/
- https://nvd.nist.gov/vuln/detail/CVE-2024-45409 · ADVISORY
- https://github.com/omniauth/omniauth-saml/commit/4274e9d57e65f2dcaae4aa3b2accf831494f2ddd · WEB
- https://github.com/SAML-Toolkits/ruby-saml · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/CVE-2024-45409.yml · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/GHSA-cvp8-5r8g-fhvq.yml · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2024-45409.yml · WEB
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 10 Sep 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Sep 2024)