Incorrect authorization in Gitea - CVE-2026-70396

 

Incorrect authorization in Gitea - CVE-2026-70396

Published: August 31, 2026


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

Vulnerability details

The vulnerability allows a remote user to create unauthorized organization-owned repositories.

The vulnerability exists due to improper access control in the organization repository creation endpoint when handling POST requests to /api/v1/orgs/{org}/repos. A remote user can send a crafted API request using a token scoped only to write:organization to create unauthorized organization-owned repositories.

Exploitation requires that the authorizing user has organization create-repository permission, and the issue does not bypass organization membership or disclose existing private repository contents.


Affected software

Gitea

How to mitigate CVE-2026-70396

Install security update from vendor's website.

Gitea - update to 1.27.3

External References

Related Security Bulletins