CVE-2026-20897: Vulnerability in Gitea

Critical. 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.

Go, CWE-284, CWE-639

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-393c-qgvj-3xph
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-284, CWE-639
Published
22 Jan 2026
Last change
15 Jul 2026
Ecosystem
Go

Affected products

Affected versions and the first fixed release

  • Gitea Before 1.25.4. Fixed in 1.25.4

Affected packages

Vulnerable version ranges and fixed releases

  • github.com/go-gitea/gitea Go, Affected before 1.25.4. Fixed in 1.25.4

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related