PT-2026-50136 · Gitea+1 · Gitea+1
CVSS v3.1
8.5
High
| Vector | AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
Gitea (affected versions not specified)
Description
An authorization bypass allows any authenticated low-privilege user with read access to a repository to push arbitrary commits directly to that repository, bypassing write-access checks. This occurs when the "Allow edits from maintainers" pull request (PR) option is abused through reverse-fork PRs. Specifically, the PR-create endpoint fails to verify if the submitter has write access to the HEAD repository when
allow maintainer edit=true is set. By creating a PR where the BASE is the attacker's fork and the HEAD is the upstream target, the attacker can leverage their maintainer status on the BASE repository to authorize pushes to the upstream target via the CanMaintainerWriteToBranch() function in models/issues/pull list.go. This can lead to full repository compromise, enabling users to backdoor any repository they can read, including public ones.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
DoS
Incorrect Authorization
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Gitea
Red Os