Least Privilege Violation in Gitea - CVE-2026-103504

 

Least Privilege Violation in Gitea - CVE-2026-103504

Published: October 19, 2026


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

Vulnerability details

The vulnerability allows a remote user to retain write and administrative unit permissions on team-linked repositories, including private repositories, after the team's permissions are reduced through the API.

The vulnerability exists due to a least privilege violation in Gitea's EditTeam API handler and access-mode parsing when processing a team demotion request containing only the permission field. Existing per-unit permissions remain unchanged, while parsing "read" or "write" as None prevents the team's top-level permission from limiting effective access. A remote user can continue using the team's retained unit permissions to perform repository operations that the organization owner intended to revoke.


Affected software

Gitea

How to mitigate CVE-2026-103504

Install security update from vendor's website.

Gitea - update to 28.0.0

External References

Related Security Bulletins