CVE-2026-20897CWE-284CWE-639

Gitea Git LFS Lock Deletion Broken Access Control (Cross-Repo IDOR)

Critical · published January 22, 2026

CVSS v3.1
9.1
EPSS
0%
Percentile
38.5
In the wild
Unconfirmed
What it is

🚨 A sneaky flaw lets users delete locks from other repositories! In Gitea, someone with write access can breach repository boundaries without a fuss. 🔥 Think of it like an office where one employee can erase files from another's desk without permission — a major breach of trust! Just because they have a key to one room doesn’t mean they should access all the others. This is absolutely devastating! An attacker could manipulate or delete important locks from repositories they shouldn’t touch, leading to data loss, corruption, or disrupted workflows for teams relying on those files. The chaos could ripple through projects, impacting productivity and collaboration.

Put simply

Think of it like an office where one employee can erase files from another's desk without permission — a major breach of trust! Just because they have a key to one room doesn’t mean they should access all the others. Gitea fails to properly validate repository ownership when deleting Git LFS locks, allowing users to remove locks associated with other repositories if they have write access, creating unintentional access issues.

What to do

This is absolutely devastating! An attacker could manipulate or delete important locks from repositories they shouldn’t touch, leading to data loss, corruption, or disrupted workflows for teams relying on those files. The chaos could ripple through projects, impacting productivity and collaboration. Patch Gitea immediately to version 1.17.6 or later to close this gap. Review user permissions carefully and ensure that only authorized users have the access they need to effectively manage their repositories. Regular audits can help prevent similar issues. You've got this! With these steps, you'll have your Gitea instance secured and running smoothly in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00455 · 38.5th percentile
Weaknesses
CWE-284 · Improper Access Control; CWE-639 · Authorization Bypass Through User-Controlled Key
Published
2026-01-22T22:01Z
EPSS history
Timeline
  • 22 JAN 22:01Z
    Gitea Git LFS Lock Deletion Broken Access Control (Cross-Repo IDOR)
    cvelistv5