Incorrect authorization in Gitea - CVE-2026-58443

 

Incorrect authorization in Gitea - CVE-2026-58443

Published: July 14, 2026


Vulnerability identifier: #VU137416
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-58443
CWE-ID: CWE-863
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to modify a private pull request head branch.

The vulnerability exists due to incorrect authorization in the pull request update endpoint when handling update requests for a pull request from a public base repository to a private head repository. A remote user can send a specially crafted update request to modify a private pull request head branch.

Exploitation requires a valid public-only,write:repository token for a user who has normal write permission to the private head branch. When Actions is enabled on the private head repository, the server-side push also triggers matching push workflows.


Affected software

Gitea

How to mitigate CVE-2026-58443

Install security update from vendor's website.

Gitea - update to 1.27.0

External References

Related Security Bulletins