Race Condition Enabling Link Following Affecting gogs.io/gogs/internal/route/repo package, versions >=0.0.0


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.04% (11th 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-8383162
  • published17 Nov 2024
  • disclosed15 Nov 2024
  • creditUnknown

Introduced: 15 Nov 2024

NewCVE-2024-44625  (opens in a new tab)
CWE-363  (opens in a new tab)
First added by Snyk

How to fix?

There is no fixed version for gogs.io/gogs/internal/route/repo.

Overview

Affected versions of this package are vulnerable to Race Condition Enabling Link Following in the editFilePost() function's handling of symlinks to nonexistent files. The /:username/:reponame/_edit/:branch/:filepath endpoint may accept such a link to a nonexistent file, and an attacker who can place a malicious server-side Git hook in the target repository can cause its contents to be triggered when the repo is modified. The attacker must have permissions to push to a repository and edit files via the web interface,

CVSS Scores

version 4.0
version 3.1