Vulnerabilities / CVE-2026-20897

critical

CVE-2026-20897

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

Published Modified CWE 284, 639
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

GHSA5.3CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Bitnami9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Trivy's own label is CRITICAL. Rated critical by Red Hat, Bitnami. Rated lower by GHSA (medium).

Description

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 packages and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasegitea1.25.4
go::GitHub Security Advisory Gogithub.com/go-gitea/gitea1.25.4
rapidfort alpine 3.20gitea1.25.4-r0
rapidfort alpine 3.21gitea1.25.4-r0
rapidfort alpine 3.22gitea1.25.4-r0
rapidfort alpine 3.23gitea1.25.4-r0

References

All 13 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.