CVE-2021-45328 Open redirect in Gitea

Medium 6.1 Published Updated

Attackers can redirect users to untrusted sites via internal URLs in Gitea, potentially facilitating phishing attacks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-45328?

CVE-2021-45328 is a medium-severity vulnerability in Gitea Gitea, published on 8 Feb 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Gitea before 1.4.3 is affected by URL Redirection to Untrusted Site ('Open Redirect') via internal URLs.

Weakness: CWE-601

Which versions are affected by CVE-2021-45328?

4 open source packages ship an affected version, including github.com/go-gitea/gitea and gitea. It affects 1 product.

PackageAffectedFixed in
github.com/go-gitea/gitea GoAll versions1.4.3
github.com/go-gitea/gitea GoAll versions1.4.3
github.com/go-gitea/gitea GoAll versions1.4.3
gitea BitnamiAll versions1.4.3

Products include Gitea Gitea.

How do I fix CVE-2021-45328?

Upgrade github.com/go-gitea/gitea to 1.4.3 or later.

Is CVE-2021-45328 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-45328 exists.

Public exploit code: 1 Nuclei template.

All Gitea Gitea vulnerabilities

Sources

Also known as BIT-gitea-2021-45328, GHSA-36h2-95gj-w488, GO-2022-0579, UBUNTU-CVE-2021-45328.

Is CVE-2021-45328 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free