CVE-2019-3778Open Redirect in spring-security-oauth2
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).
What to do
Likely to be exploited: EPSS gives a 17% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Maven: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Maven library | org.springframework.security.oauth:spring-security-oauth | Fixed | 2.3.5.RELEASE | GHSA-77rv-6vfw-x4gc |
| Maven library | org.springframework.security.oauth:spring-security-oauth2 | Fixed | 2.1.4.RELEASE | GHSA-77rv-6vfw-x4gc |
What the vendor says
As published in the CVE record by dell, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Spring Security OAuth: affected: 2.3 to before 2.3.5.RELEASE, 2.0 to before 2.0.17.RELEASE, 2.1 to before 2.1.4.RELEASE, 2.2 to before 2.2.4.RELEASE; fixed in
2.3.5.RELEASE,2.0.17.RELEASE,2.1.4.RELEASE,2.2.4.RELEASE
References
- http://www.securityfocus.com/bid/107153
- https://www.oracle.com/security-alerts/cpujan2021.html
- http://packetstormsecurity.com/files/153299/Spring-Security-OAuth-2.3-Open-Redirection.html
- https://pivotal.io/security/cve-2019-3778
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.