CVE-2026-20736 Gitea Web Attachment Deletion: Cross-Repository Unauthorized Deletion via Missing Repo Ownership Check

High 7.5 Published Updated

An attacker can delete attachments from repositories they no longer have access to by exploiting a missing ownership check in the deletion logic.

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

What is CVE-2026-20736?

CVE-2026-20736 is a high-severity missing authorization vulnerability in Gitea Gitea, published on 22 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Gitea does not properly verify repository context when deleting attachments. A user who previously uploaded an attachment to a repository may be able to delete it after losing access to that repository by making the request through a different repository they can access.

Weakness: CWE-284

Which versions are affected by CVE-2026-20736?

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.25.4
code.gitea.io/gitea GoAll versions1.25.4
code.gitea.io/gitea GoAll versions1.25.4
gitea BitnamiAll versions1.25.4

Products include Gitea Gitea.

How do I fix CVE-2026-20736?

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

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

Is CVE-2026-20736 being exploited?

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

All Gitea Gitea vulnerabilities

Sources

Also known as BIT-gitea-2026-20736, GHSA-hgr3-x44x-33hx, GHSA-jr6h-pwwp-c8g6, GO-2026-4367.

Is CVE-2026-20736 in your software?

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

Check your SBOMs for free