Improper Authorization in Gitea - CVE-2026-58439

 

Improper Authorization in Gitea - CVE-2026-58439

Published: July 14, 2026


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

Vulnerability details

The vulnerability allows a remote user to bypass branch protection and merge changes into a protected branch without legitimate maintainer approval.

The vulnerability exists due to improper access control in pull request review approval handling when changing a pull request's target branch. A remote user can obtain an approval on an unprotected branch and retarget the pull request to a protected branch to bypass branch protection and merge changes into a protected branch without legitimate maintainer approval.

Exploitation requires write access to the repository and the ability to obtain an approval from a non-whitelisted account before retargeting the pull request.


Affected software

Gitea

How to mitigate CVE-2026-58439

Install security update from vendor's website.

Gitea - update to 1.27.0

External References

Related Security Bulletins