CVE-2022-38795 Gitea erroneous repo clones
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.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | 1.17.2 |
code.gitea.io/gitea Go | All versions | 1.17.2 |
code.gitea.io/gitea Go | All versions | 1.17.2 |
gitea Bitnami | All versions | 1.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.
Other vulnerabilities in Gitea Gitea
Sources
Also known as BIT-gitea-2022-38795, GHSA-8j3v-68w3-3848, GO-2023-1999.