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

- Priority: **Prioritise**
- Reason: Severe, CVSS 10 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 12% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-09-10 · Modified: 2026-11-04
- Aliases: UBUNTU-CVE-2024-45409, DEBIAN-CVE-2024-45409, DLA-3949-1, DSA-5774-1, GHSA-jw9c-mfg7-9rx2, BIT-gitlab-2024-45409
- Record: https://cvemate.com/vulnerability/CVE-2024-45409 · JSON: https://cvemate.com/vulnerability/CVE-2024-45409/json

## Description

```text
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.
```

## Signals

- CVSS: 10 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
- EPSS: 12.454%, percentile 96.331%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian ruby-saml (Debian): \< 1.11.0-1+deb11u1 \| \< 1.13.0-1+deb12u1
- ubuntu ruby-saml (Ubuntu): \< 1.1.2-1ubuntu1+esm1 \| \< 1.7.2-1ubuntu0.1~esm1 \| \< 1.11.0-1ubuntu0.1 \| \< 1.13.0-1ubuntu0.1 \| \< 1.15.0-1ubuntu0.24.04.1
- RubyGems ruby-saml (RubyGems): \< 1.12.3 \| ≥ 1.13.0, \< 1.17.0
- gitlab gitlab: \< 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
- omniauth omniauth\_saml: ≤ 1.10.3 \| 2.0.0 \| 2.1.0
- onelogin ruby-saml: \< 1.12.3 \| ≥ 1.13.0, \< 1.17.0
- saml-toolkits ruby-saml: \< 1.12.3 \| ≥ 1.13.0, \< 1.17.0

## References

- <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://github.com/SAML-Toolkits/ruby-saml/commit/1ec5392bc506fe43a02dbb66b68741051c5ffeae>
- <https://github.com/SAML-Toolkits/ruby-saml/commit/4865d030cae9705ee5cdb12415c654c634093ae7>
- <https://ssoready.com/blog/engineering/ruby-saml-pwned-by-xml-signature-wrapping-attacks/>
- <https://news.ycombinator.com/item?id=41586031>
- <https://security.netapp.com/advisory/ntap-20240926-0008/>
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00006.html>
- <https://ubuntu.com/security/CVE-2024-45409>
- <https://www.cve.org/CVERecord?id=CVE-2024-45409>
- <https://ubuntu.com/security/notices/USN-7309-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-45409>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45409>
- <https://github.com/omniauth/omniauth-saml/commit/4274e9d57e65f2dcaae4aa3b2accf831494f2ddd>
- <https://github.com/SAML-Toolkits/ruby-saml>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/CVE-2024-45409.yml>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/GHSA-cvp8-5r8g-fhvq.yml>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2024-45409.yml>

---

Data as of 2026-12-05T03:44:00.458Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
