What’s Vulnerable › Vulnerabilities
CVE-2019-3778: Open Redirect in spring-security-oauth2
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 16.6% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2019-03-07 · updated 2026-06-17
- Weakness: CWE-601
Description
Spring Security OAuth, versions 2.3 prior to 2.3.5, and 2.2 prior to 2.2.4, and 2.1 prior to 2.1.4, and 2.0 prior to 2.0.17, and older unsupported versions could be susceptible to an open redirector attack that can leak an authorization code. A malicious user or attacker can craft a request to the authorization endpoint using the authorization code grant type, and specify a manipulated redirection URI via the "redirect_uri" parameter. This can cause the authorization server to redirect the resource owner user-agent to a URI under the control of the attacker with the leaked authorization code. This vulnerability exposes applications that meet all of the following requirements: Act in the role of an Authorization Server (e.g. @EnableAuthorizationServer) and uses the DefaultRedirectResolver in the AuthorizationEndpoint. This vulnerability does not expose applications that: Act in the role of an Authorization Server and uses a different RedirectResolver implementation other than DefaultRedirectResolver, act in the role of a Resource Server only (e.g. @EnableResourceServer), act in the role of a Client only (e.g. @EnableOAuthClient).
Affected products
- Oracle Corporation Banking Corporate Lending: 14.1.0, 14.3.0, 14.4.0
- Pivotal Spring Security OAuth: from 2.0.0 before 2.0.17; from 2.1.0 before 2.1.4; from 2.2.0 before 2.2.4; from 2.3.0 before 2.3.5 — fixed in 2.0.17, 2.1.4, 2.2.4, 2.3.5
How to fix
Upgrade to a fixed version: Pivotal Spring Security OAuth 2.0.17, 2.1.4, 2.2.4, 2.3.5. Check the vendor advisory for mitigations.
References
- http://packetstormsecurity.com/files/153299/Spring-Security-OAuth-2.3-Open-Redirection.html
- http://www.securityfocus.com/bid/107153
- https://pivotal.io/security/cve-2019-3778
- https://www.oracle.com/security-alerts/cpujan2021.html
- http://packetstormsecurity.com/files/153299/Spring-Security-OAuth-2.3-Open-Redirection.html
- http://www.securityfocus.com/bid/107153
- https://pivotal.io/security/cve-2019-3778
- https://www.oracle.com/security-alerts/cpujan2021.html
Get alerted when CVE-2019-3778 or the next vulnerability affects your stack