# CVE-2024-45409: The Ruby SAML library vulnerable to a SAML authentication bypass via Incorrect XPath selector

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 12.5%, higher than 96% of CVEs (2026-12-02)
- Published: 2024-09-10T18:50:12.965Z
- Modified: 2026-11-04T00:17:21.247Z
- Also known as: GHSA-jw9c-mfg7-9rx2, BIT-GITLAB-2024-45409
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- SAML-Toolkits ruby-saml: < 1.12.3; >= 1.13.0, < 1.17.0
- onelogin ruby-saml: before 1.12.3; from 1.13.0 before 1.17.0
- omniauth omniauth-saml: up to 2.1.0
- ruby-saml (RubyGems): before 1.12.3; from 1.13.0 before 1.17.0
- omniauth omniauth_saml: up to 1.10.3; 2.0.0; 2.1.0
- gitlab gitlab: before 16.11.10; from 17.0.0 before 17.0.8; from 17.1.0 before 17.1.8; from 17.2.0 before 17.2.7; from 17.3.0 before 17.3.3
- gitlab (Bitnami): before 16.11.10; from 17.0.0 before 17.0.8; from 17.1.0 before 17.1.8; from 17.2.0 before 17.2.7; from 17.3.0 before 17.3.3

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:4.0 Critical `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: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2> (advisory, vendor-advisory, web)
- <https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvq> (advisory, vendor-advisory, web)
- <https://github.com/SAML-Toolkits/ruby-saml/commit/1ec5392bc506fe43a02dbb66b68741051c5ffeae> (fix, patch, web)
- <https://github.com/SAML-Toolkits/ruby-saml/commit/4865d030cae9705ee5cdb12415c654c634093ae7> (fix, patch, web)
- <https://ssoready.com/blog/engineering/ruby-saml-pwned-by-xml-signature-wrapping-attacks/> (web)
- <https://news.ycombinator.com/item?id=41586031> (web)
- <https://security.netapp.com/advisory/ntap-20240926-0008/> (web)
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00006.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45409> (advisory, web)
- <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)

## Sources

- CVE List: [CVE-2024-45409](https://www.cve.org/CVERecord?id=CVE-2024-45409), CVE Terms of Use, modified 2026-11-04
- GitHub Advisory Database: [GHSA-jw9c-mfg7-9rx2](https://github.com/advisories/GHSA-jw9c-mfg7-9rx2), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2024-45409](https://nvd.nist.gov/vuln/detail/CVE-2024-45409), Public domain, modified 2026-11-04
- Bitnami Vulnerability Database: [BIT-GITLAB-2024-45409](https://osv.dev/vulnerability/BIT-GITLAB-2024-45409), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-45409 · Whole record: https://cve.day/CVE-2024-45409.json · Rebuilt by cve.day 2026-11-25T22:58:45.279Z
