VYPR
Moderate severityNVD Advisory· Published Aug 7, 2023· Updated Oct 17, 2024

CVE-2022-38795

CVE-2022-38795

Description

In Gitea through 1.17.1, repo cloning can occur in the migration function.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Gitea before 1.17.2 allowed unauthorized repository cloning via the migration function due to insufficient URL validation.

Vulnerability

CVE-2022-38795 describes a vulnerability in Gitea through version 1.17.1 where repository cloning can be triggered through the migration function [1]. The root cause is that the migration downloaders could rewrite CloneURLs to point to unallowed URLs without sufficient re-validation [3]. This allowed an attacker to bypass intended access controls and clone repositories that should not have been accessible.

Exploitation

An attacker could exploit this by crafting a migration request that specifies a repository whose clone URL, after being rewritten by the migration downloader, points to a location the attacker should not have access to [3]. No special privileges beyond the ability to use the migration feature are required, though the attacker must be able to initiate a migration operation on the target Gitea instance.

Impact

Successful exploitation allows unauthorized cloning of repositories, potentially exposing sensitive source code, configuration files, or other private data stored in version control [1][3]. This could lead to information disclosure and further compromise of related systems.

Mitigation

The vulnerability was fixed in Gitea version 1.17.2, released on September 6, 2022 [4]. The fix adds a double-check on the CloneURL after migration downloaders rewrite it, ensuring only allowed URLs are accepted [3]. Users are strongly advised to update to version 1.17.2 or later to protect their instances.

AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
code.gitea.io/giteaGo
< 1.17.21.17.2

Affected products

3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

6

News mentions

0

No linked articles in our index yet.