{"id":"CVE-2024-45409","state":"PUBLISHED","title":"The Ruby SAML library vulnerable to a SAML authentication bypass via Incorrect XPath selector","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.","publishedAt":"2024-09-10T18:50:12.965Z","updatedAt":"2024-11-11T17:02:31.329Z","severity":{"score":10,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["SAML-Toolkits ruby-saml"],"affected":[{"vendor":"SAML-Toolkits","product":"ruby-saml","versions":[{"version":"< 1.12.3","status":"affected"},{"version":">= 1.13.0, < 1.17.0","status":"affected"}]}],"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"],"weaknesses":["CWE-347"],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/45xxx/CVE-2024-45409.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-45409","state":"PUBLISHED","datePublished":"2024-09-10T18:50:12.965Z","dateUpdated":"2024-11-11T17:02:31.329Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-08-28T20:21:32.804Z"},"containers":{"cna":{"title":"The Ruby SAML library vulnerable to a SAML authentication bypass via Incorrect XPath selector","descriptions":[{"lang":"en","value":"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":[{"vendor":"SAML-Toolkits","product":"ruby-saml","versions":[{"version":"< 1.12.3","status":"affected"},{"version":">= 1.13.0, < 1.17.0","status":"affected"}]}],"references":[{"url":"https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2","name":"https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvq","name":"https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvq","tags":["x_refsource_MISC"]},{"url":"https://github.com/SAML-Toolkits/ruby-saml/commit/1ec5392bc506fe43a02dbb66b68741051c5ffeae","name":"https://github.com/SAML-Toolkits/ruby-saml/commit/1ec5392bc506fe43a02dbb66b68741051c5ffeae","tags":["x_refsource_MISC"]},{"url":"https://github.com/SAML-Toolkits/ruby-saml/commit/4865d030cae9705ee5cdb12415c654c634093ae7","name":"https://github.com/SAML-Toolkits/ruby-saml/commit/4865d030cae9705ee5cdb12415c654c634093ae7","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":10,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-347","lang":"en","description":"CWE-347: Improper Verification of Cryptographic Signature","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-09-11T21:03:29.185Z"},"source":{"advisory":"GHSA-jw9c-mfg7-9rx2","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"onelogin","product":"ruby-saml","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"1.12.3","versionType":"custom"},{"version":"1.13.0","status":"affected","lessThan":"1.17.0","versionType":"custom"}],"cpes":["cpe:2.3:a:onelogin:ruby-saml:*:*:*:*:*:*:*:*"]},{"vendor":"omniauth","product":"omniauth-saml","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.1.0","versionType":"custom"}],"cpes":["cpe:2.3:a:omniauth:omniauth-saml:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-23T00:00:00+00:00","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2024-45409"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-16T03:55:11.297Z"}},{"title":"CVE Program Container","references":[{"url":"https://ssoready.com/blog/engineering/ruby-saml-pwned-by-xml-signature-wrapping-attacks/"},{"url":"https://news.ycombinator.com/item?id=41586031"},{"url":"https://security.netapp.com/advisory/ntap-20240926-0008/"},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00006.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-11-11T17:02:31.329Z"}}]}}}