{"id":"CVE-2019-3778","published":"2019-03-07T19:00:00Z","modified":"2024-09-16T20:57:23Z","title":"Open Redirect in spring-security-oauth2","vendor":"Spring","product":"Spring Security OAuth","tier":"core","eol":null,"affectedVersions":[{"vendor":"Spring","product":"Spring Security OAuth","versions":[">= 2.3, < 2.3.5.RELEASE",">= 2.0, < 2.0.17.RELEASE",">= 2.1, < 2.1.4.RELEASE",">= 2.2, < 2.2.4.RELEASE"]}],"description":{"text":"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).","provenance":"source","from":"CVE.org"},"summary":{"text":"Spring Security OAuth's AuthorizationEndpoint, when an application acts as an Authorization Server (e.g. via @EnableAuthorizationServer) and uses the DefaultRedirectResolver, fails to properly validate the redirect_uri parameter, allowing it to be an open redirect. Applications using a different RedirectResolver implementation, or acting only as a Resource Server or OAuth Client, are not exposed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:16:58Z"},"cvss":null,"epss":{"score":0.16596,"percentile":0.97002,"date":"2026-10-28","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":2,"pulses":[{"name":"SCANID: S-KhOoOrXsco8: Thor Lite Linux 64 - Sample Lab Device 2 - incomplete (not enriched)","url":"https://otx.alienvault.com/pulse/67c6bb5aa601e91b1314ff44","created":"2025-03-04"},{"name":"Thor Lite Scan - 10.7.15 - Ubuntu Scan on Archived Files","url":"https://otx.alienvault.com/pulse/664cc3c1938ed0b9abf026a2","created":"2024-05-21"}],"provenance":"machine"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"http://www.securityfocus.com/bid/107153","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://www.oracle.com/security-alerts/cpujan2021.html","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/153299/Spring-Security-OAuth-2.3-Open-Redirection.html","tags":["x_refsource_MISC"]},{"url":"https://pivotal.io/security/cve-2019-3778","tags":["x_refsource_CONFIRM"]}],"techniques":[{"id":"T1566.002","name":"Spearphishing Link","tactics":["initial-access"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve"],"basisDetail":"CTID attack_to_cve (Phase 2)","mappingType":"exploitation_technique","evidence":[],"confidence":"high"},{"id":"T1036","name":"Masquerading","tactics":["stealth"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve"],"basisDetail":"CTID attack_to_cve (Phase 2)","mappingType":"secondary_impact","evidence":[],"confidence":"high"}],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth","vulnerableRanges":["<2.0.17.RELEASE",">=2.1.0.RELEASE, <2.1.4.RELEASE",">=2.2.0.RELEASE, <2.2.4.RELEASE",">=2.3.0.RELEASE, <2.3.5.RELEASE"],"patched":["2.0.17.RELEASE","2.1.4.RELEASE","2.2.4.RELEASE","2.3.5.RELEASE"],"from":["GHSA-77rv-6vfw-x4gc"],"provenance":"source"},{"ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","vulnerableRanges":["<2.0.17.RELEASE",">=2.1.0.RELEASE, <2.1.4.RELEASE",">=2.2.0.RELEASE, <2.2.4.RELEASE",">=2.3.0.RELEASE, <2.3.5.RELEASE"],"patched":["2.0.17.RELEASE","2.1.4.RELEASE","2.2.4.RELEASE","2.3.5.RELEASE"],"from":["GHSA-77rv-6vfw-x4gc"],"provenance":"source"}],"advisories":[{"id":"GHSA-77rv-6vfw-x4gc","url":"https://github.com/advisories/GHSA-77rv-6vfw-x4gc","severity":"MODERATE","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth","vulnerableRanges":["<2.0.17.RELEASE"],"patched":["2.0.17.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-77rv-6vfw-x4gc","url":"https://github.com/advisories/GHSA-77rv-6vfw-x4gc","severity":"MODERATE","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","vulnerableRanges":["<2.0.17.RELEASE"],"patched":["2.0.17.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-77rv-6vfw-x4gc","url":"https://github.com/advisories/GHSA-77rv-6vfw-x4gc","severity":"MODERATE","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth","vulnerableRanges":[">=2.1.0.RELEASE, <2.1.4.RELEASE"],"patched":["2.1.4.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-77rv-6vfw-x4gc","url":"https://github.com/advisories/GHSA-77rv-6vfw-x4gc","severity":"MODERATE","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","vulnerableRanges":[">=2.1.0.RELEASE, <2.1.4.RELEASE"],"patched":["2.1.4.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-77rv-6vfw-x4gc","url":"https://github.com/advisories/GHSA-77rv-6vfw-x4gc","severity":"MODERATE","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth","vulnerableRanges":[">=2.2.0.RELEASE, <2.2.4.RELEASE"],"patched":["2.2.4.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-77rv-6vfw-x4gc","url":"https://github.com/advisories/GHSA-77rv-6vfw-x4gc","severity":"MODERATE","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","vulnerableRanges":[">=2.2.0.RELEASE, <2.2.4.RELEASE"],"patched":["2.2.4.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-77rv-6vfw-x4gc","url":"https://github.com/advisories/GHSA-77rv-6vfw-x4gc","severity":"MODERATE","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth","vulnerableRanges":[">=2.3.0.RELEASE, <2.3.5.RELEASE"],"patched":["2.3.5.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-77rv-6vfw-x4gc","url":"https://github.com/advisories/GHSA-77rv-6vfw-x4gc","severity":"MODERATE","ecosystem":"Maven","package":"org.springframework.security.oauth:spring-security-oauth2","vulnerableRanges":[">=2.3.0.RELEASE, <2.3.5.RELEASE"],"patched":["2.3.5.RELEASE"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2019-0373","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2019-0373","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":47000,"url":"https://www.exploit-db.com/exploits/47000","title":"Spring Security OAuth - Open Redirector","type":"webapps","platform":"java","date":"2019-06-17","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2019-06-17"},"pocGithub":{"count":1,"skipped":0,"earliest":"2019-10-14","earliestUrl":"https://github.com/BBB-man/CVE-2019-3778-Spring-Security-OAuth-2.3-Open-Redirection","repos":[{"name":"BBB-man/CVE-2019-3778-Spring-Security-OAuth-2.3-Open-Redirection","url":"https://github.com/BBB-man/CVE-2019-3778-Spring-Security-OAuth-2.3-Open-Redirection","stars":0,"created":"2019-10-14"}]},"first":{"date":"2019-06-17","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/47000"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/153299/Spring-Security-OAuth-2.3-Open-Redirection.html"],"flow":[{"stage":"exploitation","techniques":["T1566.002"],"provenance":"source"},{"stage":"secondary","techniques":["T1036"],"provenance":"source"}],"timeline":[{"date":"2019-03-07","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2019-3778","provenance":"source"},{"date":"2019-06-17","kind":"exploit-public","label":"First public exploit: Exploit-DB (EDB-47000); later: PoC-in-GitHub 2019-10-14","url":"https://www.exploit-db.com/exploits/47000","provenance":"source"}],"speed":{"daysToPublicExploit":102,"firstExploitFrom":"Exploit-DB","daysToKev":null},"priority":{"score":25.5,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.4,"detail":"percentile 0.9700"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 1 NVD exploit link; 1 PoC-in-GitHub repo"},{"name":"Mentioned in OTX pulses","points":1.08,"detail":"2 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-spring-security-oauth-cve-2019-3778","children":[{"from":"CVE-2019-3778","to":"CVE-2020-26877","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"NOTE: this is similar to CVE-2019-3778.","from":"CVE.org","in":"CVE-2020-26877"}]}],"packageHistory":[{"cve":"CVE-2016-4977","published":"2017-05-25","fixed":"2.0.10","kev":false},{"cve":"CVE-2018-1260","published":"2018-05-11","fixed":"2.3.3","kev":false},{"cve":"CVE-2018-15758","published":"2018-10-18","fixed":"2.3.4.RELEASE","kev":false,"link":{"from":"CVE-2018-15758","to":"CVE-2019-3778","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security.oauth:spring-security-oauth2","fromFixed":"2.0.16","toFixed":"2.0.17.RELEASE","daysApart":140},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same package + description similarity"}]}},{"cve":"CVE-2019-3778","published":"2019-03-07","fixed":"2.3.5.RELEASE","kev":false},{"cve":"CVE-2022-22969","published":"2022-04-21","fixed":"2.5.2.RELEASE","kev":false}],"package":"Maven:org.springframework.security.oauth:spring-security-oauth2"}}