CVE-2022-38795 Gitea erroneous repo clones

Medium 6.5 Published Updated

Attackers can clone private repositories via the migration function without proper authorization checks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-38795?

CVE-2022-38795 is a medium-severity missing authorization vulnerability in Gitea Gitea, published on 7 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Which versions are affected by CVE-2022-38795?

4 open source packages ship an affected version, including code.gitea.io/gitea and gitea. It affects 1 product.

PackageAffectedFixed in
code.gitea.io/gitea GoAll versions1.17.2
code.gitea.io/gitea GoAll versions1.17.2
code.gitea.io/gitea GoAll versions1.17.2
gitea BitnamiAll versions1.17.2

Products include Gitea Gitea.

How do I fix CVE-2022-38795?

Upgrade code.gitea.io/gitea to 1.17.2 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2022-38795 being exploited?

There is no known exploitation of CVE-2022-38795 in the wild and no public exploit code.

All Gitea Gitea vulnerabilities

Sources

Also known as BIT-gitea-2022-38795, GHSA-8j3v-68w3-3848, GO-2023-1999.

Is CVE-2022-38795 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free