WaratekVRT Sign in

CVE-2019-3778 Spring Security OAuth

Affected softwareSpring Security OAuth
Severity6.5 Medium CVSS 3.1 2 scores
Fixed in2.0.17.RELEASE, 2.1.4.RELEASE, 2.2.4.RELEASE, 2.3.5.RELEASE
WeaknessCWE-601
Published7 Mar 2019
Updated17 Jun 2026

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).

Exploitation status

Working exploit published

A reviewed exploit catalogue lists ready-to-run exploit code for this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC 2 indexed Published artifacts you can open, in Exploit-DB, GitHub PoC; first seen 2019-06-17.
  • EPSS 17% chance in 30 days A model's forecast, not a report of exploitation. Higher than 97% of all scored CVEs.

1 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC Spring Security OAuth 2.3 Open Redirection 分析复现篇 2019-10-14
Exploit-DB Spring Security OAuth - Open Redirector 2019-06-17

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action unverified
  • Review automated Inferred
  • Record active
Decided by The affected package being open source on Maven, so the fix can be read
Finding This CVE affects an open-source Java library published on Maven Central (Maven packages: org.springframework.security.oauth:spring-security-oauth, org.springframework.security.oauth:spring-security-oauth2), so it is squarely in ARMR's territory and the source needed to understand the defect is public. That makes it a candidate for an ARMR patch rule. No rule exists and none is scheduled: the diff between the affected and fixed versions has not been read, and a closer look may find no hook point ARMR can act on.

CVSS

6.5 MEDIUM v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 6.5 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N NVD Primary published
CVSS 2.0 6.4 none AV:N/AC:L/Au:N/C:P/I:P/A:N NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.springframework.security.oauth:spring-security-oauth 0 2.0.17.RELEASE unbounded
org.springframework.security.oauth:spring-security-oauth2 0 2.0.17.RELEASE unbounded
org.springframework.security.oauth:spring-security-oauth 2.1.0.RELEASE 2.1.4.RELEASE unbounded
org.springframework.security.oauth:spring-security-oauth2 2.1.0.RELEASE 2.1.4.RELEASE unbounded
org.springframework.security.oauth:spring-security-oauth 2.2.0.RELEASE 2.2.4.RELEASE unbounded
org.springframework.security.oauth:spring-security-oauth2 2.2.0.RELEASE 2.2.4.RELEASE unbounded
org.springframework.security.oauth:spring-security-oauth 2.3.0.RELEASE 2.3.5.RELEASE unbounded
org.springframework.security.oauth:spring-security-oauth2 2.3.0.RELEASE 2.3.5.RELEASE unbounded

Products and versions

4 products, 15 version entries
SourceVendorProductSchemeAffected versions
nvd oracle banking corporate lending generic 14.1.0 · 14.3.0 · 14.4.0
osv org.springframework.security.oauth spring-security-oauth generic < 2.0.17 · ≥ 2.1.0 and < 2.1.4 · ≥ 2.2.0 and < 2.2.4 · ≥ 2.3.0 and < 2.3.5
osv org.springframework.security.oauth spring-security-oauth2 generic < 2.0.17 · ≥ 2.1.0 and < 2.1.4 · ≥ 2.2.0 and < 2.2.4 · ≥ 2.3.0 and < 2.3.5
nvd pivotal software spring security oauth generic ≥ 2.0.0 and < 2.0.17 · ≥ 2.1.0 and < 2.1.4 · ≥ 2.2.0 and < 2.2.4 · ≥ 2.3.0 and < 2.3.5

References

URLTags
https://github.com/spring-attic/spring-security-oauth PACKAGE
https://pivotal.io/security/cve-2019-3778 WEB
https://web.archive.org/web/20200227084837/http://www.securityfocus.com/bid/107153 WEB
https://www.oracle.com/security-alerts/cpujan2021.html WEB
http://packetstormsecurity.com/files/153299/Spring-Security-OAuth-2.3-Open-Redirection.html WEB
http://www.securityfocus.com/bid/107153 Third Party Advisory, VDB Entry

Timeline

Published2019-03-07By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.