Incorrect authorization in Gitea - CVE-2026-58416

 

Incorrect authorization in Gitea - CVE-2026-58416

Published: July 14, 2026


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

Vulnerability details

The vulnerability allows a remote user to disclose sensitive information.

The vulnerability exists due to incorrect authorization in GetActionsUserRepoPermission in models/perm/access/repo_permission.go when handling fork pull-request Actions task access to a collaborative-owner private repository. A remote user can submit a specially crafted fork pull request workflow to disclose sensitive information.

Exploitation requires the target private repository to trust the base repository owner as a collaborative owner, the base repository to be private, and the fork pull-request workflow to run.


Affected software

Gitea

How to mitigate CVE-2026-58416

Install security update from vendor's website.

Gitea - update to 1.27.0

External References

Related Security Bulletins