CVE-2019-3778

Open Redirect in spring-security-oauth2

No CVSS score yet EPSS 16.5%

Published 7 Mar 2019 Updated 16 Sep 2024 CNA: dell

Check your servers for CVE-2019-3778

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2019-3778 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

EPSS 16.5%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 97.6% of all scored CVEs. Scores of 28 Nov 2026.

Weakness

  • CWE-601 URL Redirection to Untrusted Site

Affected products

As the CNA lists them.

ProductVersions
Spring Security OAuth
affected from 2.3, before 2.3.5.RELEASE
affected from 2.0, before 2.0.17.RELEASE
affected from 2.1, before 2.1.4.RELEASE
affected from 2.2, before 2.2.4.RELEASE

Is my server affected?

Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2019-3778 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2019-3778

RHEL, Rocky, Alma, Fedora

rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2019-3778

Alpine

apk list --installed | grep -i PACKAGE

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2019-3778
trivy image --scanners vuln IMAGE | grep CVE-2019-3778

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Other references

Source: the record CVE-2019-3778 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.