{"id":"CVE-2016-5697","aliases":["DEBIAN-CVE-2016-5697","EUVD-2018-0357","GHSA-36p7-xjw8-h6f2","UBUNTU-CVE-2016-5697","USN-7309-1"],"status":"published","title":"Ruby-saml allows attackers to perform XML signature wrapping attacks","description":"Ruby-saml before 1.3.0 allows attackers to perform XML signature wrapping attacks via unspecified vectors.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01208,"percentile":0.68579,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-91"],"published":"2017-01-23T21:00:00Z","modified":"2026-10-24T10:31:05Z","fixes":[{"ecosystem":"RubyGems","package":"ruby-saml","fixed_in":["1.3.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"ruby-saml","fixed_in":["1.3.0-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ruby-saml","fixed_in":["1.1.2-1ubuntu1+esm1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"ruby-saml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"ruby-saml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0-1"}]}]},{"source":"osv","ecosystem":"RubyGems","package":"ruby-saml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0"}]}],"versions":["0.0.5","0.0.6","0.0.7","0.0.8","0.2.1","0.2.2","0.2.3","0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.4.5","0.4.6","0.4.7","0.5.0","0.5.1","0.5.2","0.5.3","0.6.0","0.7.0","0.7.1","0.7.2","0.7.3","0.8.0","0.8.1","0.8.10","0.8.11","0.8.12","0.8.13","0.8.14","0.8.15","0.8.16","0.8.17","0.8.18","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.8.7","0.8.8","0.8.9","0.9","0.9.1","0.9.2","0.9.3","0.9.4","1.0.0","1.1.0","1.1.1","1.1.2","1.2.0"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ruby-saml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.2-1ubuntu1+esm1"}]}],"versions":["0.9.2-1","1.0.0-1","1.1.2-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ruby-saml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.2-1ubuntu1+esm1"}]}],"versions":["0.9.2-1","1.0.0-1","1.1.2-1ubuntu1"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"ruby-saml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.2-1ubuntu0.1~esm1"}]}],"versions":["1.4.1-1","1.7.2-1"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"ruby-saml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.11.0-1ubuntu0.1"}]}],"versions":["1.7.2-1","1.11.0-1"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"ruby-saml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.0-1ubuntu0.1"}]}],"versions":["1.11.0-1","1.13.0-1"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"ruby-saml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.15.0-1ubuntu0.24.04.1"}]}],"versions":["1.15.0-1"],"bundled":3}],"products":[{"vendor":"onelogin","product":"ruby-saml"}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2016/06/24/3","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-5697","tags":["advisory"]},{"url":"https://github.com/onelogin/ruby-saml/commit/a571f52171e6bfd87db59822d1d9e8c38fb3b995","tags":["web"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-saml/CVE-2016-5697.yml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-36p7-xjw8-h6f2"},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-5697","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2016-5697","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-5697","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7309-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2017-11428","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2024-45409","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2016-5697","description":"Ruby-saml before 1.3.0 allows attackers to perform XML signature wrapping attacks via unspecified vectors.","status":"published","published":"2017-01-23T21:00:00Z","modified":"2024-08-06T01:07:59.941Z","updated_at":"2026-11-02T14:33:30.359814Z"}],"euvd":[{"id":"EUVD-2018-0357","description":"Ruby-saml before 1.3.0 allows attackers to perform XML signature wrapping attacks via unspecified vectors.","status":"published","published":"2017-01-23T21:00:00Z","modified":"2024-08-06T01:07:59Z","updated_at":"2026-11-03T02:22:42.006781Z"}],"ghsa":[{"id":"GHSA-36p7-xjw8-h6f2","title":"Ruby-saml allows attackers to perform XML signature wrapping attacks ","description":"ruby-saml prior to version 1.3.0 is vulnerable to an XML signature wrapping attack in the specific scenario where there was a signature that referenced at the same time 2 elements (but past the scheme validator process since 1 of the element was inside the encrypted assertion).\nruby-saml users must update to 1.3.0, which implements 3 extra validations to mitigate this kind of attack.","status":"published","published":"2018-08-21T17:08:30Z","modified":"2023-08-28T10:31:37Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-91"],"updated_at":"2026-11-02T14:37:00.680009Z"}],"nvd":[{"id":"CVE-2016-5697","description":"Ruby-saml before 1.3.0 allows attackers to perform XML signature wrapping attacks via unspecified vectors.","status":"published","published":"2017-01-23T21:59:01.707Z","modified":"2026-06-17T00:49:53.46Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-91"],"updated_at":"2026-11-02T14:03:35.029632Z"}],"osv":[{"id":"CVE-2016-5697","description":"Ruby-saml before 1.3.0 allows attackers to perform XML signature wrapping attacks via unspecified vectors.","status":"published","published":"2017-01-23T21:59:01.707Z","modified":"2026-10-24T10:31:05.388673921Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:02.776224Z"},{"id":"DEBIAN-CVE-2016-5697","description":"Ruby-saml before 1.3.0 allows attackers to perform XML signature wrapping attacks via unspecified vectors.","status":"published","published":"2017-01-23T21:59:01.707Z","modified":"2026-09-22T07:01:33.480277035Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:45:27.910042Z"},{"id":"GHSA-36p7-xjw8-h6f2","title":"Ruby-saml allows attackers to perform XML signature wrapping attacks ","description":"ruby-saml prior to version 1.3.0 is vulnerable to an XML signature wrapping attack in the specific scenario where there was a signature that referenced at the same time 2 elements (but past the scheme validator process since 1 of the element was inside the encrypted assertion).\nruby-saml users must update to 1.3.0, which implements 3 extra validations to mitigate this kind of attack.","status":"published","published":"2018-08-21T17:08:30Z","modified":"2024-02-16T08:17:29.100536Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-91"],"updated_at":"2026-11-02T15:46:35.406455Z"},{"id":"UBUNTU-CVE-2016-5697","description":"Ruby-saml before 1.3.0 allows attackers to perform XML signature wrapping attacks via unspecified vectors.","status":"published","published":"2017-01-23T21:59:00Z","modified":"2026-02-04T03:23:01.804408Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:54:12.642042Z"},{"id":"USN-7309-1","title":"Ruby SAML vulnerabilities","description":"\nIt was discovered that Ruby SAML did not properly validate SAML responses.\nAn unauthenticated attacker could use this vulnerability to log in as an \nabitrary user. This issue only affected Ubuntu 16.04 LTS. (CVE-2016-5697)\n\nIt was discovered that Ruby SAML incorrectly utilized the results of XML\nDOM traversal and canonicalization APIs. An unauthenticated attacker could\nuse this vulnerability to log in as an abitrary user. This issue only \naffected Ubuntu 16.04 LTS. (CVE-2017-11428)\n\nIt was discovered that Ruby SAML did not properly verify the signature of\nthe SAML Response, allowing multiple elements with the same ID. An \nunauthenticated attacker could use this vulnerability to log in as an \nabitrary user. (CVE-2024-45409)\n\n","status":"published","published":"2025-02-28T17:30:52Z","modified":"2026-06-25T13:31:46.082077349Z","updated_at":"2026-11-02T16:58:18.876384Z"}]}}
