{"id":"BIT-gitlab-2024-45409","summary":"The Ruby SAML library vulnerable to a SAML authentication bypass via Incorrect XPath selector","details":"The Ruby SAML library is for implementing the client side of a SAML authorization. Ruby-SAML in \u003c= 12.2 and 1.13.0 \u003c= 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.","aliases":["CVE-2024-45409","GHSA-jw9c-mfg7-9rx2"],"modified":"2025-05-20T10:02:07.006Z","published":"2024-09-21T07:19:08.053Z","database_specific":{"cpes":["cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*"],"severity":"Critical"},"references":[{"type":"WEB","url":"https://github.com/SAML-Toolkits/ruby-saml/commit/1ec5392bc506fe43a02dbb66b68741051c5ffeae"},{"type":"WEB","url":"https://github.com/SAML-Toolkits/ruby-saml/commit/4865d030cae9705ee5cdb12415c654c634093ae7"},{"type":"WEB","url":"https://github.com/SAML-Toolkits/ruby-saml/security/advisories/GHSA-jw9c-mfg7-9rx2"},{"type":"WEB","url":"https://github.com/omniauth/omniauth-saml/security/advisories/GHSA-cvp8-5r8g-fhvq"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00006.html"},{"type":"WEB","url":"https://news.ycombinator.com/item?id=41586031"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20240926-0008/"},{"type":"WEB","url":"https://ssoready.com/blog/engineering/ruby-saml-pwned-by-xml-signature-wrapping-attacks/"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45409"}],"affected":[{"package":{"name":"gitlab","ecosystem":"Bitnami","purl":"pkg:bitnami/gitlab"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"16.11.10"},{"introduced":"17.0.0"},{"fixed":"17.0.8"},{"introduced":"17.1.0"},{"fixed":"17.1.8"},{"introduced":"17.2.0"},{"fixed":"17.2.7"},{"introduced":"17.3.0"},{"fixed":"17.3.3"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/gitlab/BIT-gitlab-2024-45409.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}],"schema_version":"1.7.3"}