Improper Preservation of Permissions in Gitea - CVE-2026-58510

 

Improper Preservation of Permissions in Gitea - CVE-2026-58510

Published: July 14, 2026


Vulnerability identifier: #VU137447
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-58510
CWE-ID: CWE-281
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 improper preservation of permissions in the updateRepository helper when processing API requests that change a repository from public to private. A remote user can use the REST API to make a watched public repository private without clearing stale watch records to disclose sensitive information.

The issue affects the API path PATCH /api/v1/repos/{owner}/{repo}; stale watch records can expose the private repository through the subscriptions endpoint and keep the visible watch count inflated.


Affected software

Gitea

How to mitigate CVE-2026-58510

Install security update from vendor's website.

Gitea - update to 1.27.0

External References

Related Security Bulletins