CVE-2021-45327 Capture-replay in Gitea
Remote attackers can execute arbitrary code by exploiting improper HTTP method permission checks in the Gitea admin or user API.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-45327?
CVE-2021-45327 is a critical missing authorization vulnerability in Gitea Gitea, published on 8 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Gitea before 1.11.2 is affected by Trusting HTTP Permission Methods on the Server Side when referencing the vulnerable admin or user API. which could let a remote malisious user execute arbitrary code.
Weakness: CWE-436
Which versions are affected by CVE-2021-45327?
4 open source packages ship an affected version, including github.com/go-gitea/gitea, gitea and code.gitea.io/gitea. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/go-gitea/gitea Go | All versions | 1.11.2 |
github.com/go-gitea/gitea Go | All versions | 1.11.2 |
gitea Bitnami | All versions | 1.11.2 |
code.gitea.io/gitea Go | All versions | 1.11.2 |
Products include Gitea Gitea.
How do I fix CVE-2021-45327?
Upgrade github.com/go-gitea/gitea to 1.11.2 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2021-45327 being exploited?
There is no known exploitation of CVE-2021-45327 in the wild and no public exploit code.
Other vulnerabilities in Gitea Gitea
Sources
Also known as BIT-gitea-2021-45327, CLEANSTART-2025-DO86030, GHSA-jrpg-35hw-m4p9, GO-2022-0310, UBUNTU-CVE-2021-45327.