{"id":"CVE-2017-2582","published":"2018-07-26T17:00:00Z","modified":"2024-08-05T13:55:06Z","title":"It was found that while parsing the SAML messages the StaxParserUtil class of keycloak before 2.5.1 replaces special…","vendor":"Red Hat","product":"keycloak","tier":"tail","description":{"text":"It was found that while parsing the SAML messages the StaxParserUtil class of keycloak before 2.5.1 replaces special strings for obtaining attribute values with system property. This could allow an attacker to determine values of system properties at the attacked system by formatting the SAML request ID field to be the chosen system property which could be obtained in the \"InResponseTo\" field in the response.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02426,"percentile":0.84602,"provenance":"source"},"cwes":[{"id":"CWE-201","name":"Insertion of Sensitive Information Into Sent Data"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2017:3220","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3216","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2017:2809","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2740","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3218","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2017:2810","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2741","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2742","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2017:2808","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:0137","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3219","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:0139","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://github.com/keycloak/keycloak/pull/3715/commits/0cb5ba0f6e83162d221681f47b470c3042eef237","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securitytracker.com/id/1041707","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-2582","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/errata/RHSA-2019:0136","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2743","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3217","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2017:2811","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.securityfocus.com/bid/101046","tags":["vdb-entry","x_refsource_BID"]}],"priority":{"score":21.5,"factors":[{"name":"EPSS percentile","points":16.92},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"keycloak","versions":["2.5.1"]}],"affected":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-core","vulnerableRanges":["<2.5.1"],"patched":["2.5.1"],"from":["GHSA-c77r-6f64-478q"],"provenance":"source"}],"summary":{"text":"The vulnerability is in the StaxParserUtil class of Red Hat's Keycloak (versions before 2.5.1) while it parses SAML messages, where special strings used to obtain attribute values are replaced with system property values. An attacker with network access and low privileges can craft the SAML request ID field to reference a chosen system property, and read its value from the \"InResponseTo\" field of the response, exposing sensitive system property values without user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:09:26Z"},"euvd":{"id":"EUVD-2018-0568","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-red-hat-build-of-keycloak-26-4-cve-2017-2582","children":[{"from":"CVE-2017-2582","to":"CVE-2024-11736","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["saml-core/src/main/java/org/keycloak/saml/common/util/StaxParserUtil.java"],"commits":["https://github.com/keycloak/keycloak/commit/0cb5ba0f6e83162d221681f47b470c3042eef237","https://github.com/keycloak/keycloak/commit/7a76858fe4aa39a39fb6b86dd3d2c113d9c59854"],"basis":"shared function","functions":["getElementText"]}]}],"packageHistory":[{"cve":"CVE-2014-3656","published":"2019-12-10","fixed":"1.1.0.Beta1","kev":false},{"cve":"CVE-2016-8609","published":"2018-08-01","fixed":"2.3.0","kev":false},{"cve":"CVE-2016-8629","published":"2018-03-12","fixed":"2.4.0","kev":false,"link":{"from":"CVE-2016-8629","to":"CVE-2017-2582","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.keycloak:keycloak-core","fromFixed":"2.4.0","toFixed":"2.5.1","daysApart":136}]}},{"cve":"CVE-2017-2582","published":"2018-07-26","fixed":"2.5.1","kev":false},{"cve":"CVE-2017-2585","published":"2018-03-12","fixed":"2.5.1","kev":false},{"cve":"CVE-2017-2646","published":"2018-07-27","fixed":"2.5.5","kev":false,"link":{"from":"CVE-2017-2582","to":"CVE-2017-2646","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.keycloak:keycloak-core","fromFixed":"2.5.1","toFixed":"2.5.5","daysApart":1}]}},{"cve":"CVE-2017-12161","published":"2018-02-21","fixed":"3.4.2","kev":false}],"package":"Maven:org.keycloak:keycloak-core"}}