CRITICAL🇵🇱 Wersja polska

CVE-2026-20897

CVSS 9.1v3.1pub. 2026-01-22upd. 2026-06-27

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.

🤖 AI Analysis
How it works

The bug results from improper access control (CWE-284) and insufficient validation of object identifiers (CWE-639). During Git LFS lock deletion operations, the application does not properly verify whether a given lock actually belongs to the repository in the context of which the requesting user is operating. As a result, an authenticated user with write permissions to any repository can construct an appropriate request and delete an LFS lock from another, unrelated repository.

Impact

An attacker can delete Git LFS locks in repositories to which they should not have access, leading to a breach of the integrity of the LFS file management process and potential disruption of work for other users and teams using the affected repositories.

Mitigation & patch

Gitea should be updated to version 1.25.4 or newer, which contains fixes described in pull requests #36344 and #36349. Details available in the official vendor announcement at https://blog.gitea.com/release-of-1.25.4/

Who is affected

Gitea in versions preceding 1.25.4 (based on vendor reference)

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Gitea

    APP
    Gitea
    < 1.25.4
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
CWE
References

Related vulnerabilities

CVE-2026-60004CRITICAL9.8⚠ KEVsame product

Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.

CVE-2026-20750CRITICAL9.1PL ✓same product

Gitea: nieprawidłowa walidacja własności projektów organizacji

CVE-2026-20912CRITICAL9.1PL ✓same product

Gitea: nieautoryzowany dostęp do załączników z prywatnych repozytoriów

CVE-2022-42968CRITICAL9.8PL ✓same product

Gitea: brak sanityzacji refs prowadzący do wstrzyknięcia argumentów git

CVE-2021-45330CRITICAL9.8PL ✓same product

Gitea: nieprawidłowe unieważnianie sesji umożliwia przejęcie uprawnień