Incorrect authorization in Gitea - CVE-2026-26231

 

Incorrect authorization in Gitea - CVE-2026-26231

Published: June 8, 2026


Vulnerability identifier: #VU133473
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-26231
CWE-ID: CWE-863
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 push arbitrary commits to a repository without write access.

The vulnerability exists due to incorrect authorization in the pull request creation and pre-receive authorization logic when creating a reverse-fork pull request with "Allow edits from maintainers" enabled and then pushing over HTTP or SSH. A remote user can create a crafted reverse-fork pull request and push commits to bypass write-access checks and push arbitrary commits to a repository without write access.

Exploitation requires read access to the target repository and the vulnerable authorization path is triggered when the proc-receive support is enabled.


How to mitigate CVE-2026-26231

Install security update from vendor's website.

Sources