CVE-2022-1058 Open Redirect on login in go-gitea/gitea
An attacker can redirect users to malicious sites after login, potentially leading to credential theft or phishing attacks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-1058?
CVE-2022-1058 is a high-severity vulnerability in Gitea Gitea, published on 24 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Open Redirect on login in GitHub repository go-gitea/gitea prior to 1.16.5.
Weakness: CWE-601
Which versions are affected by CVE-2022-1058?
4 open source packages ship an affected version, including code.gitea.io/gitea and gitea. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | 1.16.5 |
code.gitea.io/gitea Go | All versions | 1.16.5 |
code.gitea.io/gitea Go | All versions | 1.16.5 |
gitea Bitnami | All versions | 1.16.5 |
Products include Gitea Gitea.
How do I fix CVE-2022-1058?
Upgrade code.gitea.io/gitea to 1.16.5 or later.
Is CVE-2022-1058 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-1058 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in Gitea Gitea
Sources
Also known as BIT-gitea-2022-1058, GHSA-4rqq-rxvc-v2rc, GO-2024-2752.