Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gitea.dev
  4. ›
  5. CVE-2026-58420

CVE-2026-58420: Gitea: Local File Inclusion via file:// URI in Migration Restore

July 21, 2026

Gitea’s restore-repo command processes release.yml files from a user-supplied archive. The DownloadURL field in each release attachment is passed to uri.Open() without scheme validation. Because uri.Open() supports the file:// scheme via os.Open(), an operator-level attacker can plant a crafted release.yml to exfiltrate arbitrary files from the server filesystem as release attachments.


References

  • github.com/advisories/GHSA-5ggr-2f2h-jmvm
  • github.com/go-gitea/gitea/security/advisories/GHSA-5ggr-2f2h-jmvm
  • nvd.nist.gov/vuln/detail/CVE-2026-58420

Code Behaviors & Features

Detect and mitigate CVE-2026-58420 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.27.0

Fixed versions

  • 1.27.0

Solution

Upgrade to version 1.27.0 or above.

Impact 4.4 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-73: External Control of File Name or Path

Source file

go/gitea.dev/CVE-2026-58420.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:04 +0000.