CVE-2017-2582: 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.
Medium CVSS 6.5
- CVE id
- CVE-2017-2582
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Keycloak Runtimes and servers |
< 2.5.1 | 2.5.1 |
How to fix it
Upgrade Keycloak to 2.5.1 or later.
- Upgrade Keycloak (the quay.io/keycloak/keycloak image tag) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2017-2582 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2017-2582
- Web: https://access.redhat.com/errata/RHSA-2017:2808
- Web: https://access.redhat.com/errata/RHSA-2017:2809
- Web: https://access.redhat.com/errata/RHSA-2017:2810
- Web: https://access.redhat.com/errata/RHSA-2017:2811
- Web: https://access.redhat.com/errata/RHSA-2017:3216
- Web: https://access.redhat.com/errata/RHSA-2017:3217
- Web: https://access.redhat.com/errata/RHSA-2017:3218
- Web: https://access.redhat.com/errata/RHSA-2017:3219
- Web: https://access.redhat.com/errata/RHSA-2017:3220
- Web: https://access.redhat.com/errata/RHSA-2018:2740
- Web: https://access.redhat.com/errata/RHSA-2018:2741
- Web: https://access.redhat.com/errata/RHSA-2018:2742
- Web: https://access.redhat.com/errata/RHSA-2018:2743
- Web: https://access.redhat.com/errata/RHSA-2019:0136
- Web: https://access.redhat.com/errata/RHSA-2019:0137
- Web: https://access.redhat.com/errata/RHSA-2019:0139
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-2582
- Web: https://github.com/keycloak/keycloak/pull/3715/commits/0cb5ba0f6e83162d221681f47b470c3042eef237
- Web: https://access.redhat.com/errata/RHSA-2017:2808
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.