Input validation error in Gitea - CVE-2026-58420

 

Input validation error in Gitea - CVE-2026-58420

Published: July 14, 2026


Vulnerability identifier: #VU137429
CSH Severity: Medium
CVSS v4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-58420
CWE-ID: CWE-20
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local privileged user to disclose sensitive information.

The vulnerability exists due to improper input validation in the migration restore release attachment handling when processing a crafted archive containing a release.yml file with a file:// DownloadURL. A local privileged user can supply a crafted archive or trick an administrator into restoring it to disclose sensitive information.

The issue affects the restore-repo command, and exfiltrated file contents are stored as release attachments retrievable through the Gitea API.


Affected software

Gitea

How to mitigate CVE-2026-58420

Install security update from vendor's website.

Gitea - update to 1.27.0

External References

Related Security Bulletins