Improper access control in Gitea - CVE-2026-20706

 

Improper access control in Gitea - CVE-2026-20706

Published: June 8, 2026


Vulnerability identifier: #VU133471
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-20706
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: The Gitea Authors
Affected software:
Gitea

Detailed vulnerability description

The vulnerability allows a remote user to disclose sensitive repository contents.

The vulnerability exists due to improper access control in the /archive/* download endpoint when handling archive download requests with an OAuth2 or personal access token that has only non-repository scope. A remote user can send a crafted request to download a full private repository archive to disclose sensitive repository contents.

The issue affects the web archive download path, while the API archive endpoint is properly scope-checked.


How to mitigate CVE-2026-20706

Install security update from vendor's website.

Sources