CVE-2017-2582 · redhat
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. 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.
Published 2018-07-26, last changed 2026-06-17. Weakness: CWE-201, CWE-200.
How to fix
Upgrade to a fixed version: org.keycloak:keycloak-core 2.5.1 (Maven). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in keycloak/keycloak by 0cb5ba0f6e, 1ad464c681. Functions changed by the fix: getAttributeValue, getElementText. Regression tests: testsuite/integration-arquillian/tests/base/pom.xml, testsuite/integration-arquillian/tests/other/adapters/jboss/as7/pom.xml, testsuite/integration-arquillian/tests/other/adapters/jboss/eap/pom.xml, testsuite/integration-arquillian/tests/other/adapters/jboss/eap6-fuse/pom.xml. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2018-07-26 | Published |
| 2018-10-18 | Package advisory GHSA-c77r-6f64-478q |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 2.43% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-c77r-6f64-478q | org.keycloak:keycloak-core (Maven) | 2.5.1 |
Also known as: GHSA-c77r-6f64-478q
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2024-4028 | 2025-02-18 | 3.8 | Keycloak-core: stored xss in keycloak when creating a items in admin console |
| CVE-2023-6841 | 2024-09-10 | 7.5 | Keycloak: amount of attributes per object is not limited and it may lead to dos |
| CVE-2024-7318 | 2024-09-09 | 4.8 | Keycloak-core: one time passcode (otp) is valid longer than expiration timeseverity |
| CVE-2024-7260 | 2024-09-09 | 6.1 | Keycloak-core: open redirect on account page |
| CVE-2023-6927 | 2023-12-18 | 6.1 | Keycloak: open redirect via "form_post.jwt" jarm response mode |
| CVE-2023-4918 | 2023-09-12 | 8.8 | Plaintext storage of user password |
| CVE-2023-1664 | 2023-05-26 | 6.5 | same package: org.keycloak:keycloak-core (Maven) |
| CVE-2023-0105 | 2023-01-13 | 6.5 | same package: org.keycloak:keycloak-core (Maven) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-2582, or call /api/v1/vulnerabilities/CVE-2017-2582. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.