CVE-2014-8682: Gogs.io/gogs SQL Injection Vulnerability
HIGHCVE-2014-8682 is a HIGH (CVSS 7.3) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Gogs.io/gogs libraries in the Go ecosystem. The issue involves sql injection in gogs. Remediation is available by upgrading affected packages to version 0.5.8.
CVE-2014-8682 at a Glance
Security Impact
CVSS: 7.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2014-8682
To remediate this vulnerability, upgrade all affected Gogs.io/gogs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade gogs.io/gogs to 0.5.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for gogs.io/gogs
How to Check if You Are Affected
To determine whether your application is affected by CVE-2014-8682, inspect your project dependencies for Gogs.io/gogs:
inspect dependencies for gogs.io/gogs
Analyze the terminal output to locate any version of Gogs.io/gogs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.8), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Gogs.io/gogs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2014-8682 Affected Gogs.io/gogs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
gogs.io/gogs
|
Go |
≥ 0.3.1
< 0.5.8
|
0.5.8
|
References
Frequently Asked Questions
What is CVE-2014-8682?
Which Gogs.io/gogs versions are affected?
What version fixes CVE-2014-8682?
Is gogs.io/gogs affected?
What is the CVSS score of CVE-2014-8682?
What CWE is associated with CVE-2014-8682?
How can I check Go dependencies for CVE-2014-8682?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g6xv-8q23-w2q3",
"modified" : "2021-05-20T16:59:51Z",
"published" : "2021-06-29T18:32:48Z",
"aliases" : [ "CVE-2014-8682" ],
"summary" : "SQL Injection in Gogs",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "gogs.io/gogs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.3.1"
}, {
"fixed" : "0.5.8"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-8682"
}, {
"type" : "WEB",
"url" : "https://github.com/gogits/gogs/commit/0c5ba4573aecc9eaed669e9431a70a5d9f184b8d"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/98694"
}, {
"type" : "WEB",
"url" : "https://github.com/gogits/gogs/releases/tag/v0.5.8"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/35238"
}, {
"type" : "WEB",
"url" : "http://gogs.io/docs/intro/change_log.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/129116/Gogs-Label-Search-Blind-SQL-Injection.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/129117/Gogs-Repository-Search-SQL-Injection.html"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2014/Nov/31"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2014/Nov/33"
}, {
"type" : "WEB",
"url" : "http://www.exploit-db.com/exploits/35238"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/archive/1/533995/100/0/threaded"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/71187"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-20T16:59:51Z",
"nvd_published_at" : null
}
}