CVE-2021-45325 Gitea displaying raw OpenID error in UI

High 7.5 Published Updated

An attacker can exploit an SSRF vulnerability in Gitea's OpenID URL handling to access internal resources or bypass security controls.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-45325?

CVE-2021-45325 is a high-severity server-side request forgery vulnerability in Gitea Gitea, published on 8 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Server Side Request Forgery (SSRF) vulneraility exists in Gitea before 1.7.0 using the OpenID URL.

Weakness: CWE-918

Which versions are affected by CVE-2021-45325?

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.7.0
github.com/go-gitea/gitea GoAll versions1.7.0
github.com/go-gitea/gitea GoAll versions1.7.0
gitea BitnamiAll versions1.7.0

Products include Gitea Gitea.

How do I fix CVE-2021-45325?

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

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2021-45325 being exploited?

There is no known exploitation of CVE-2021-45325 in the wild and no public exploit code.

All Gitea Gitea vulnerabilities

Sources

Also known as BIT-gitea-2021-45325, GHSA-8h8p-x289-vvqr, GO-2022-0308, UBUNTU-CVE-2021-45325.

Is CVE-2021-45325 in your software?

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

Check your SBOMs for free