SQL Injection Affecting gogs.io/gogs package, versions <0.5.8


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Mature
EPSS
0.54% (78th 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 SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GOGSIOGOGS-1083912
  • published5 Nov 2014
  • disclosed5 Nov 2014
  • creditUnknown

Introduced: 5 Nov 2014

CVE-2014-8682  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade gogs.io/gogs to version 0.5.8 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection. Multiple SQL injection vulnerabilities in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.x before 0.5.6.1105 Beta allow remote attackers to execute arbitrary SQL commands via the q parameter to (1) api/v1/repos/search, which is not properly handled in models/repo.go, or (2) api/v1/users/search, which is not properly handled in models/user.go.

CVSS Scores

version 3.1