Use of Incorrectly-Resolved Name or Reference Affecting gogs.io/gogs/internal/route/repo package, versions <0.13.1-rc.1


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th 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-GOGSIOGOGSINTERNALROUTEREPO-8548087
  • published23 Dec 2024
  • disclosed22 Dec 2024
  • creditManasseh Zhou

Introduced: 22 Dec 2024

NewCVE-2024-54148  (opens in a new tab)
CWE-706  (opens in a new tab)

How to fix?

Upgrade gogs.io/gogs/internal/route/repo to version 0.13.1-rc.1 or higher.

Overview

Affected versions of this package are vulnerable to Use of Incorrectly-Resolved Name or Reference when editing a file in a remote repo via the UI. The editFilePost() function in editor.go does not check whether the target of an edit operation is a symlink and it can therefore be modified by an attacker to gain SSH access to the target repository.

CVSS Scores

version 4.0
version 3.1