Arbitrary Command Execution Affecting gogs.io/gogs/internal/db package, versions <0.12.8


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.07% (80th 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-GOGSIOGOGSINTERNALDB-2855301
  • published3 Jun 2022
  • disclosed3 Jun 2022
  • creditunicorn-security-team

Introduced: 3 Jun 2022

CVE-2021-32546  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade gogs.io/gogs/internal/db to version 0.12.8 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Command Execution by allowing a malicious user to update a crafted config file into repository's .git directory to gain SSH access to the server.

CVSS Base Scores

version 3.1