Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-20897 — AI Deep Analysis Summary

Q1What is this vulnerability? (Essence + Consequences)

🚨 **Root Cause**: When Gitea deletes Git LFS locks, it **fails to verify repository ownership**. 💥 **Impact**: Users with write permissions can **accidentally or maliciously delete** LFS locks in other repositories, caus…

Q2Root Cause? (CWE/Flaw)

🔍 **CWE**: Missing Authorization. 🐛 **Defect**: During the `DELETE` operation, the backend logic **only checks the current user's permissions but fails to verify the repository ID associated with the lock**.

Q3Who is affected? (Versions/Components)

📦 **Component**: Gitea (a lightweight Git service based on Go). 📅 **Version**: Affected versions are not explicitly listed, but **v1.25.4 has fixed this issue**. Please check if your version is lower than this one.

Q4What can hackers do? (Privileges/Data)

🕵️ **Hacker Capabilities**: 1. **Disrupt Collaboration**: Deleting LFS locks from other users' repositories prevents them from committing or pulling large files. 2.…

Q5Is exploitation threshold high? (Auth/Config)

🔑 **Difficulty**: **Medium**. ✅ **Authentication Required**: Requires **write permissions** for the target repository. ❌ **Not Required**: Administrator privileges or Remote Code Execution (RCE).

Q6Is there a public Exp? (PoC/Wild Exploitation)

💣 **Exp/PoC**: The data shows **pocs: []**, with no public ready-to-use exploits currently available. 🌍 **Exploitation in the Wild**: No reports yet. However, given the simple logic, **writing a PoC is low difficulty**.

Q7How to self-check? (Features/Scanning)

🔎 **Self-Check Method**: 1. Check if the Gitea version is **< v1.25.4**. 2. Audit the code: Search for the LFS lock deletion interface to confirm whether it includes repository ownership verification logic.

Q8Is it fixed officially? (Patch/Mitigation)

🛡️ **Official Fix**: **Fixed**! 📌 **Patched Version**: **Gitea v1.25.4**. 🔗 **Reference**: GitHub Advisory GHSA-rrq5-r9h5-pc7c.

Q9What if no patch? (Workaround)

⚠️ **Workarounds (No Patch)**: 1. **Upgrade** to v1.25.4 or a higher version (recommended). 2. **Least Privilege**: Strictly restrict users' write permissions to repositories to avoid granting unnecessary write access.

Q10Is it urgent? (Priority Suggestion)

🚀 **Priority**: **Medium-High**. 💡 **Reason**: Although it is not an RCE, it directly compromises data integrity and collaboration processes. It involves LFS large file management and has a wide impact.…