CVE-2026-20897

Critical

Description

Gitea does not properly validate repository ownership when deleting Git LFS locks. A user with write access to one repository may be able to delete LFS locks belonging to other repositories.

SeverityCritical
CVSS9.1
Exploit probability—
ProductGitea
PublishedJan 22, 2026
First seenJan 22, 2026

How to fix

Affected products

ProductAffected versionsFixed in
gitea giteav < 1.25.41.25.4
github.com/go-gitea/giteaGov < 1.25.41.25.4
code.gitea.io/giteaGov < 1.25.41.25.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.