KeygraphLabs · CVE MCP

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.

CVSS
6.5
medium, from NVD
EPSS
2.38%
percentile 84.5%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-26Published
2018-10-18Package advisory GHSA-c77r-6f64-478q
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 2.43%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-c77r-6f64-478qorg.keycloak:keycloak-core (Maven)2.5.1

Also known as: GHSA-c77r-6f64-478q

Related

CVEPublishedCVSSSummary
CVE-2024-40282025-02-183.8Keycloak-core: stored xss in keycloak when creating a items in admin console
CVE-2023-68412024-09-107.5Keycloak: amount of attributes per object is not limited and it may lead to dos
CVE-2024-73182024-09-094.8Keycloak-core: one time passcode (otp) is valid longer than expiration timeseverity
CVE-2024-72602024-09-096.1Keycloak-core: open redirect on account page
CVE-2023-69272023-12-186.1Keycloak: open redirect via "form_post.jwt" jarm response mode
CVE-2023-49182023-09-128.8Plaintext storage of user password
CVE-2023-16642023-05-266.5same package: org.keycloak:keycloak-core (Maven)
CVE-2023-01052023-01-136.5same 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.

NVD · CVE.org