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

- Severity: High 7.2 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 53.2%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-24T14:15:12.000Z
- Modified: 2026-09-10T16:01:31.763Z
- Also known as: GHSA-4rqq-rxvc-v2rc, BIT-GITEA-2022-1058, GO-2024-2752
- Weaknesses: CWE-601
- Assigned by: @huntrdev

## Description

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

(As written by CVE List.)

## Affected

- go-gitea go-gitea/gitea: from unspecified before 1.16.5
- code.gitea.io/gitea (Go): before 1.16.5
- gitea gitea: before 1.16.5
- gitea (Bitnami): before 1.16.5

## Every score

- @huntrdev: CVSS:3.0 7.2 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://huntr.dev/bounties/4fb42144-ac70-4f76-a5e1-ef6b5e55dc0d> (exploit, advisory, patch, third-party-advisory, web)
- <https://github.com/go-gitea/gitea/commit/e3d8e92bdc67562783de9a76b5b7842b68daeb48> (advisory, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-1058> (advisory, web)
- <https://github.com/go-gitea/gitea/pull/19175> (web)
- <https://github.com/go-gitea/gitea/pull/19186> (web)
- <https://github.com/go-gitea/gitea> (package)
- <https://github.com/advisories/GHSA-4rqq-rxvc-v2rc> (advisory)

## Sources

- CVE List: [CVE-2022-1058](https://www.cve.org/CVERecord?id=CVE-2022-1058), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-4rqq-rxvc-v2rc](https://github.com/advisories/GHSA-4rqq-rxvc-v2rc), CC-BY-4.0, modified 2024-06-04
- Go Vulnerability Database: [GO-2024-2752](https://pkg.go.dev/vuln/GO-2024-2752), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2022-1058](https://nvd.nist.gov/vuln/detail/CVE-2022-1058), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GITEA-2022-1058](https://osv.dev/vulnerability/BIT-GITEA-2022-1058), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2022-1058 · Whole record: https://cve.day/CVE-2022-1058.json · Rebuilt by cve.day 2026-11-25T22:58:10.254Z
