CVE-2017-2582 keycloak-core discloses system properties
An attacker can read system property values from the Keycloak server by crafting a malicious SAML request ID field.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-2582?
CVE-2017-2582 is a medium-severity vulnerability in Redhat Jboss Enterprise Application Platform, published on 26 Jul 2018. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2017-2582?
2 open source packages ship an affected version, including org.keycloak:keycloak-core. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-core Maven | All versions | 2.5.1 |
org.keycloak:keycloak-core Maven | All versions | 2.5.1 |
Linux distribution packages (38)
hornetq Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:2.3.25-24.SP22_redhat_1.1.ep6.el5 |
jboss-as-appclient Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-cli Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-client-all Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-clustering Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-cmp Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-configadmin Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-connector Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-controller Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-controller-client Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-core-security Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-deployment-repository Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-deployment-scanner Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-domain-http Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-domain-management Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-ee Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-ee-deployment Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-ejb3 Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-embedded Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-host-controller Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-jacorb Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-jaxr Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-jaxrs Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-jdr Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-jmx Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-jpa Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-jsf Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-jsr77 Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-logging Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-mail Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-management-client-content Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-messaging Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-modcluster Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-naming Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-network Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-osgi Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-osgi-configadmin Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
jboss-as-osgi-service Red Hat:jboss_enterprise_application_platform:6::el5 | All versions | 0:7.5.18-1.Final_redhat_1.1.ep6.el5 |
Products include Redhat Jboss Enterprise Application Platform, Redhat Keycloak.
How do I fix CVE-2017-2582?
Upgrade org.keycloak:keycloak-core to 2.5.1 or later.
Is CVE-2017-2582 being exploited?
There is no known exploitation of CVE-2017-2582 in the wild and no public exploit code.
Other vulnerabilities in Redhat Jboss Enterprise Application Platform
- CVE-2017-12149 Red Hat JBoss Application Server Remote Code Execution
- CVE-2010-1428 Red Hat JBoss Information Disclosure
- CVE-2010-0738 Red Hat JBoss Authentication Bypass
- CVE-2016-3690 Deserialization in n/a
- CVE-2017-7504 Deserialization in JBoss
All Redhat Jboss Enterprise Application Platform vulnerabilities
Sources
Also known as GHSA-c77r-6f64-478q, RHSA-2017:3216, RHSA-2017:3217, RHSA-2017:3218, RHSA-2017:3219, RHSA-2019:0136 and 1 more.