{"id":"CVE-2024-45409","aliases":["CVE-2024-45409","GHSA-jw9c-mfg7-9rx2","BIT-GITLAB-2024-45409"],"related":[],"kind":"vulnerability","state":"published","title":"The Ruby SAML library vulnerable to a SAML authentication bypass via Incorrect XPath selector","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"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.\n\nThis vulnerability was reported by ahacker1 of SecureSAML (ahacker1@securesaml.com)","format":"markdown","source":"ghsa"},{"lang":"es","text":"La librería Ruby SAML sirve para implementar el lado del cliente de una autorización SAML. Ruby-SAML en &lt;= 12.2 y 1.13.0 &lt;= 1.16.0 no verifica correctamente la firma de la respuesta SAML. Un atacante no autenticado con acceso a cualquier documento SAML firmado (por el IdP) puede falsificar una respuesta/afirmación SAML con contenido arbitrario. Esto le permitiría al atacante iniciar sesión como un usuario arbitrario dentro del sistema vulnerable. Esta vulnerabilidad se solucionó en 1.17.0 y 1.12.3.","source":"nvd"}],"published":"2024-09-10T18:50:12.965Z","modified":"2026-11-04T00:17:21.247Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","score":10,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","score":10,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-347"],"affected":[{"ranges":[{"version":"< 1.12.3","status":"affected"},{"version":">= 1.13.0, < 1.17.0","status":"affected"}],"vendor":"SAML-Toolkits","product":"ruby-saml","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.12.3","status":"affected"},{"type":"custom","introduced":"1.13.0","fixed":"1.17.0","status":"affected"}],"vendor":"onelogin","product":"ruby-saml","cpe":"cpe:2.3:a:onelogin:ruby-saml:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"2.1.0","status":"affected"}],"vendor":"omniauth","product":"omniauth-saml","cpe":"cpe:2.3:a:omniauth:omniauth-saml:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.12.3"}],"ecosystem":"RubyGems","package":"ruby-saml","purl":"pkg:gem/ruby-saml","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.13.0","status":"affected","fixed":"1.17.0"}],"ecosystem":"RubyGems","package":"ruby-saml","purl":"pkg:gem/ruby-saml","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.12.3"},{"status":"affected","introduced":"1.13.0","fixed":"1.17.0"}],"vendor":"onelogin","product":"ruby-saml","cpe":"cpe:2.3:a:onelogin:ruby-saml:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","lastAffected":"1.10.3"},{"status":"affected","version":"2.0.0"},{"status":"affected","version":"2.1.0"}],"vendor":"omniauth","product":"omniauth_saml","cpe":"cpe:2.3:a:omniauth:omniauth_saml:*:*:*:*:*:ruby:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"16.11.10"},{"status":"affected","introduced":"17.0.0","fixed":"17.0.8"},{"status":"affected","introduced":"17.1.0","fixed":"17.1.8"},{"status":"affected","introduced":"17.2.0","fixed":"17.2.7"},{"status":"affected","introduced":"17.3.0","fixed":"17.3.3"}],"vendor":"gitlab","product":"gitlab","cpe":"cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"16.11.10"},{"type":"semver","introduced":"17.0.0","status":"affected","fixed":"17.0.8"},{"type":"semver","introduced":"17.1.0","status":"affected","fixed":"17.1.8"},{"type":"semver","introduced":"17.2.0","status":"affected","fixed":"17.2.7"},{"type":"semver","introduced":"17.3.0","status":"affected","fixed":"17.3.3"}],"ecosystem":"Bitnami","package":"gitlab","purl":"pkg:bitnami/gitlab","source":"bitnami"}],"references":[{"url":"https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvq","tags":["advisory","vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/SAML-Toolkits/ruby-saml/commit/1ec5392bc506fe43a02dbb66b68741051c5ffeae","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/SAML-Toolkits/ruby-saml/commit/4865d030cae9705ee5cdb12415c654c634093ae7","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://ssoready.com/blog/engineering/ruby-saml-pwned-by-xml-signature-wrapping-attacks/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://news.ycombinator.com/item?id=41586031","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20240926-0008/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00006.html","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45409","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/omniauth/omniauth-saml/commit/4274e9d57e65f2dcaae4aa3b2accf831494f2ddd","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/SAML-Toolkits/ruby-saml","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/CVE-2024-45409.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth-saml/GHSA-cvp8-5r8g-fhvq.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2024-45409.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-10-16T03:55:12.641Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-45409","url":"https://www.cve.org/CVERecord?id=CVE-2024-45409","licence":"CVE Terms of Use","modified":"2026-11-04T00:03:35.684Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jw9c-mfg7-9rx2","url":"https://github.com/advisories/GHSA-jw9c-mfg7-9rx2","licence":"CC-BY-4.0","modified":"2026-08-07T08:11:51.793Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-45409","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45409","licence":"Public domain","modified":"2026-11-04T00:17:21.247Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GITLAB-2024-45409","url":"https://osv.dev/vulnerability/BIT-GITLAB-2024-45409","licence":"Apache-2.0","modified":"2026-09-08T08:48:11.637Z"}],"updatedAt":"2026-11-25T22:58:45.279Z","epss":{"score":0.12454,"percentile":0.96315,"date":"2026-12-02T12:00:21.000Z"}}