← Vulnerability feed

Vulnerability record · CVE-2022-1058 · published 24 March 2022

CVE-2022-1058: Gitea login open redirect allows credential phishing

Gitea · Gitea

Gitea before 1.16.5 contains an open redirect on the login flow (CWE-601). An attacker can craft a login URL that sends the victim to an arbitrary external site after authentication, which is useful for phishing and credential theft. The flaw is network-reachable and requires the victim to click a link, but no attacker authentication is needed.

6.1 CVSS 3.1 Medium EPSS 53% · top 1.1% CWE-601 · Open redirect
6.1CVSS 3.1 base score, v2 5.8
53%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

Open Redirect on login in GitHub repository go-gitea/gitea prior to 1.16.5.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: high.

medium priorityThe CVSS score is 6.1 (medium) and exploitation requires user interaction, but high EPSS and a public exploit reference raise the practical risk.

What it is

Gitea before 1.16.5 contains an open redirect on the login flow (CWE-601). An attacker can craft a login URL that sends the victim to an arbitrary external site after authentication, which is useful for phishing and credential theft. The flaw is network-reachable and requires the victim to click a link, but no attacker authentication is needed.

Impact

An attacker gains the ability to redirect a victim from a trusted Gitea login page to an attacker-controlled site, enabling convincing phishing or malware delivery. There is no direct code execution or data disclosure from the redirect itself.

Attack surface

Reached over the network via a crafted login URL; the CVSS vector shows PR:N and UI:R, so no authentication is required but the victim must interact with the link. The redirect is triggered during the login process.

Exploitation

Not listed in CISA KEV, but EPSS is 0.53177 (98.9th percentile) and the huntr.dev reference is tagged Exploit, indicating public exploit detail exists. No ransomware usage is documented.

What to do

  • Upgrade Gitea to 1.16.5 or later, which contains the patch commit e3d8e92bdc67562783de9a76b5b7842b68daeb48.
  • If immediate upgrade is not possible, restrict or validate redirect targets on the login endpoint and block external redirect parameters.
  • Educate users to verify the destination domain after logging in and to treat unexpected login links as suspicious.
  • Monitor and filter outbound redirects from the Gitea login path to untrusted external domains at the web proxy or WAF.

Detection

  • Review web/proxy logs for requests to the Gitea login endpoint containing external URL parameters or redirect targets.
  • Alert on login responses that issue redirects to domains outside the organization's trusted set.
  • Correlate huntr.dev or public exploit payload patterns against Gitea access logs for the login path.
  • Audit Gitea version inventory to identify instances below 1.16.5.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-1058 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-60004Gitea diffpatch API code injection enables remote code executionGitea before 1.27.1 allows remote code execution through the diffpatch API by way of Git hook installation. The flaw is a code injection issue (CWE-9…KEVEPSS 24%analysed9.8CVE-2022-42968Gitea argument injection vulnerabilityGitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.EPSS 1.2%9.8CVE-2021-45331Gitea improper authentication vulnerabilityAn Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges. If captured, the TOTP code for…EPSS 1.4%9.8CVE-2021-45330Gitea vulnerabilityAn issue exsits in Gitea through 1.15.7, which could let a malicious user gain privileges due to client side cookies not being deleted and the sessio…EPSS 1.4%9.8CVE-2021-45327Gitea interpretation conflict vulnerabilityGitea before 1.11.2 is affected by Trusting HTTP Permission Methods on the Server Side when referencing the vulnerable admin or user API. which could…EPSS 2.1%9.8CVE-2020-28991Gitea vulnerabilityGitea 0.9.99 through 1.12.x before 1.12.6 does not prevent a git protocol path that specifies a TCP port number and also contains newlines (with URL …EPSS 1.7%9.8CVE-2019-11576Gitea improper authentication vulnerabilityGitea before 1.8.0 allows 1FA for user accounts that have completed 2FA enrollment. If a user's credentials are known, then an attacker could send th…EPSS 1.8%9.8CVE-2018-18926Gitea vulnerabilityGitea before 1.5.4 allows remote code execution because it does not properly validate session IDs. This is related to session ID handling in the go-m…EPSS 3.0%

Source: NIST National Vulnerability Database (record CVE-2022-1058), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.