CVE-2018-14658 — keycloak-core
MEDIUMCVE-2018-14658 is a medium-severity (CVSS 6.1) Open Redirect vulnerability in org.keycloak:keycloak-core. The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.
Keycloak Open Redirect
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.keycloak:keycloak-coreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
A flaw was found in JBOSS Keycloak 3.2.1.Final. The Redirect URL for both Login and Logout are not normalized in org.keycloak.protocol.oidc.utils.RedirectUtils before the redirect url is verified. This can lead to an Open Redirection attack
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.keycloak:keycloak-core | all versions | No fix |
Affected Products
keycloakredhatDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.keycloak:keycloak-core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Remediation status
The records we use list no patched version of org.keycloak:keycloak-core for CVE-2018-14658. Check the maintainer's advisory, and where your build allows, override or pin the dependency away from the vulnerable range.
Mitigate without a patch
Stop reflecting attacker-controlled destinations: resolve every redirect target against an allowlist of paths or hosts you own, prefer a server-side key over a full URL in the request, and reject absolute URLs entirely where the flow only ever needs a relative one.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Single Sign-On 7.2.5 zip | see advisory | RHSA-2018:3595 |
| Red Hat Single Sign-On 7.2 for RHEL 6 | rh-sso7-keycloak-0:3.4.14-1.Final_redhat_00001.1.jbcs.el6 | RHSA-2018:3592 |
| Red Hat Single Sign-On 7.2 for RHEL 7 | rh-sso7-keycloak-0:3.4.14-1.Final_redhat_00001.1.jbcs.el7 | RHSA-2018:3593 |
Frequently Asked Questions
Is CVE-2018-14658 in your dependencies?
Find it across Maven, including transitive dependencies.