CVE-2022-1058 Open Redirect on login in go-gitea/gitea

High 7.2 Published Updated

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.

PackageAffectedFixed in
code.gitea.io/gitea GoAll versions1.16.5
code.gitea.io/gitea GoAll versions1.16.5
code.gitea.io/gitea GoAll versions1.16.5
gitea BitnamiAll versions1.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.

All Gitea Gitea vulnerabilities

Sources

Also known as BIT-gitea-2022-1058, GHSA-4rqq-rxvc-v2rc, GO-2024-2752.

Is CVE-2022-1058 in your software?

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

Check your SBOMs for free