UNIX Symbolic Link (Symlink) Following Affecting github.com/gogs/gogs/internal/db package, versions <0.13.3-rc.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.33% (56th 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-GITHUBCOMGOGSGOGSINTERNALDB-10500051
  • published25 Jun 2025
  • disclosed24 Jun 2025
  • creditRy0taK

Introduced: 24 Jun 2025

NewCVE-2024-56731  (opens in a new tab)
CWE-61  (opens in a new tab)

How to fix?

Upgrade github.com/gogs/gogs/internal/db to version 0.13.3-rc.1 or higher.

Overview

Affected versions of this package are vulnerable to UNIX Symbolic Link (Symlink) Following via improper checks of a path's existence under the .git directory. An attacker can execute arbitrary commands with the privileges of the configured account in RUN_USER. By exploiting this flaw, an attacker can access and modify code belonging to any user hosted on the same instance.

CVSS Base Scores

version 4.0
version 3.1