External Control of File Name or Path Affecting github.com/go-gitea/gitea/modules/uri package, versions <1.27.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.41% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOGITEAGITEAMODULESURI-19644154
  • published8 Sept 2026
  • disclosed21 Jul 2026
  • creditisa0-gh

Introduced: 21 Jul 2026

CVE-2026-58420  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

Upgrade github.com/go-gitea/gitea/modules/uri to version 1.27.0 or higher.

Overview

Affected versions of this package are vulnerable to External Control of File Name or Path via the uri.Open function. An attacker can read arbitrary files from the server filesystem by supplying a crafted archive with a release.yml containing a DownloadURL field using the file:// scheme.

Note: This is only exploitable if the attacker can supply an archive to the restore-repo command executed by an operator or administrator.

Workaround

This vulnerability can be mitigated by restricting execution of the restore-repo command to fully trusted operators, manually auditing archive contents before restoration, and reviewing existing release attachments for unexpected or sensitive filenames.

CVSS Base Scores

version 4.0
version 3.1