Incorrect Privilege Assignment in Gitea - CVE-2026-58435

 

Incorrect Privilege Assignment in Gitea - CVE-2026-58435

Published: July 14, 2026


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

Vulnerability details

The vulnerability allows a remote user to disclose sensitive information from private repositories.

The vulnerability exists due to incorrect privilege assignment in the Gitea LFS server and deploy-key authentication flow when handling SSH git-lfs-authenticate requests and subsequent HTTP LFS batch API requests. A remote user can use a write deploy key for one repository to obtain a valid LFS JWT and submit a crafted batch upload request to disclose sensitive information from other private repositories owned by the same victim.

Successful exploitation requires that the LFS server is enabled and that the attacker knows the SHA-256 OID of a target LFS object. If the victim is a site administrator, LFS objects across the entire instance may be reachable.


Affected software

Gitea

How to mitigate CVE-2026-58435

Install security update from vendor's website.

Gitea - update to 1.27.0

External References

Related Security Bulletins