Incorrect authorization in Gitea - CVE-2026-79960

 

Incorrect authorization in Gitea - CVE-2026-79960

Published: October 19, 2026


Vulnerability identifier: #VU156105
CSH Severity: Low
CVSS v4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-79960
CWE-ID: CWE-863
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to bypass protected-tag restrictions and disclose private repository contents by changing repository visibility.

The vulnerability exists due to incorrect authorization in Gitea's deploy-key identity assignment and hook pipeline when processing pushes authenticated with deploy keys. A remote user can use a writable deploy key to push with the repository owner's identity, creating protected tags without the required authorization or issuing git push -o repo.private=false against an empty private repository to make its contents public.


Affected software

Gitea

How to mitigate CVE-2026-79960

Install security update from vendor's website.

Gitea - update to 28.0.0

External References

Related Security Bulletins