Improper access control in Gitea - CVE-2026-56654

 

Improper access control in Gitea - CVE-2026-56654

Published: July 14, 2026


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

Vulnerability details

The vulnerability allows a remote user to escalate privileges.

The vulnerability exists due to improper access control in the personal access token creation API endpoint when processing a token supplied in the Authorization Basic :x-oauth-basic format. A remote user can send a specially crafted API request to escalate privileges.

The issue arises because token-based authentication is misclassified as basic authentication, allowing the password-authentication guard to be bypassed, and the created token is not restricted to the caller's existing token scope.


Affected software

Gitea

How to mitigate CVE-2026-56654

Install security update from vendor's website.

Gitea - update to 1.27.0

External References

Related Security Bulletins