CVE-2022-1058
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-1058 is an Open Redirect vulnerability discovered in GitHub repository go-gitea/gitea affecting versions prior to 1.16.5. The vulnerability was disclosed on March 24, 2022, and was assigned a CVSS v3.1 base score of 6.1 (Medium) by NIST NVD (NVD, CVE).

Technical details

The vulnerability is classified as CWE-601 (URL Redirection to Untrusted Site). It received varying CVSS scores from different sources, with NIST NVD rating it as 6.1 MEDIUM (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) and huntr.dev rating it as 7.2 HIGH (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N) (NVD).

Impact

The vulnerability allows for URL redirection to untrusted sites through the login functionality. When exploited, it could enable attackers to redirect users to malicious websites, potentially leading to phishing attacks or other social engineering attempts (NVD).

Mitigation and workarounds

The vulnerability was patched in Gitea version 1.16.5. The fix involves implementing additional validation checks for redirect locations, specifically preventing redirects that begin with '//' or '/' as these can be converted by browsers to redirect to external sites (GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20806MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20805MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20804MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20803MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management