CVE-2021-45327 Capture-replay in Gitea

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
github.com/go-gitea/gitea GoAll versions1.11.2
github.com/go-gitea/gitea GoAll versions1.11.2
gitea BitnamiAll versions1.11.2
code.gitea.io/gitea GoAll versions1.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.

All Gitea Gitea vulnerabilities

Sources

Also known as BIT-gitea-2021-45327, CLEANSTART-2025-DO86030, GHSA-jrpg-35hw-m4p9, GO-2022-0310, UBUNTU-CVE-2021-45327.

Is CVE-2021-45327 in your software?

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

Check your SBOMs for free