CVE-2021-45325 Gitea displaying raw OpenID error in UI
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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/go-gitea/gitea Go | All versions | 1.7.0 |
github.com/go-gitea/gitea Go | All versions | 1.7.0 |
github.com/go-gitea/gitea Go | All versions | 1.7.0 |
gitea Bitnami | All versions | 1.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.
Other vulnerabilities in Gitea Gitea
Sources
Also known as BIT-gitea-2021-45325, GHSA-8h8p-x289-vvqr, GO-2022-0308, UBUNTU-CVE-2021-45325.