CVE-2026-20897: Gitea Git LFS Lock Deletion Broken Access Control (Cross-Repo IDOR)

Published Jan 22, 2026
·
Updated

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.

Affected Software

3 affected componentsFixes available
Gitea Gitea
go/github.com/go-gitea/gitea<1.25.4
1.25.4
Gitea Gitea<1.25.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/go-gitea/gitea to a version that resolves this vulnerability.

    Fixed in 1.25.4

Event History

Jan 22, 2026
CVE Published
via MITRE·10:01 PM
Data Sourced
via MITRE·10:01 PM
DescriptionWeakness
Data Sourced
via NVD·10:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·11:01 PM
DescriptionSeverityAffected Software
Jan 23, 2026
Advisory Published
via GitHub·12:31 AM
Data Sourced
via GitHub·12:31 AM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-20897?

CVE-2026-20897 is classified as a high severity vulnerability that involves broken access control in Gitea.

2

How do I fix CVE-2026-20897?

To fix CVE-2026-20897, upgrade Gitea to version 1.25.4 or later.

3

What does CVE-2026-20897 affect?

CVE-2026-20897 affects Gitea's Git LFS lock deletion functionality, specifically regarding repository ownership validation.

4

Who is impacted by CVE-2026-20897?

Users with write access to one repository in Gitea may exploit CVE-2026-20897 to delete Git LFS locks from other repositories.

5

What is the cause of CVE-2026-20897?

CVE-2026-20897 is caused by Gitea's improper validation of repository ownership when performing delete operations on Git LFS locks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203