Improper Authorization Affecting github.com/go-gitea/gitea/modules/git package, versions <1.17.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (38th 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 Learn

Learn about Improper Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOGITEAGITEAMODULESGIT-5826037
  • published8 Aug 2023
  • disclosed7 Aug 2023
  • creditUnknown

Introduced: 7 Aug 2023

CVE-2022-38795  (opens in a new tab)
CWE-285  (opens in a new tab)

How to fix?

Upgrade github.com/go-gitea/gitea/modules/git to version 1.17.2 or higher.

Overview

Affected versions of this package are vulnerable to Improper Authorization via the migration function when it provides re-writing of CloneURLs that may point to not allowed URLs. An attacker can clone a repo by exploiting this vulnerability.

CVSS Scores

version 3.1