{"id":"CVE-2014-8681","aliases":["EUVD-2021-1361","GHSA-mr6h-chqp-p9g2","GO-2020-0021"],"status":"published","title":"SQL Injection in gogs.io/gogs","description":"SQL injection vulnerability in the GetIssues function in models/issue.go in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.6.x before 0.5.6.1025 Beta allows remote attackers to execute arbitrary SQL commands via the label parameter to user/repos/issues.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.04437,"percentile":0.91454,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-89"],"published":"2014-11-21T15:00:00Z","modified":"2026-06-17T00:17:08Z","exploits":[{"source":"exploitdb","id":"EDB-35237","title":"Gogs - 'label' SQL Injection","type":"webapps","platform":"multiple","date":"2014-11-14","url":"https://www.exploit-db.com/exploits/35237"}],"fixes":[{"ecosystem":"Go","package":"gogs.io/gogs","fixed_in":["0.5.8"],"sources":["ghsa","osv"]},{"ecosystem":"Go","package":"github.com/gogits/gogs","fixed_in":["0.5.8"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"gogs.io/gogs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.3.1"},{"fixed":"0.5.8"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/gogits/gogs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.3.1"},{"fixed":"0.5.8"}]}]},{"source":"osv","ecosystem":"Go","package":"gogs.io/gogs","ranges":[{"type":"SEMVER","events":[{"introduced":"0.3.1"},{"fixed":"0.5.8"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/gogits/gogs","ranges":[{"type":"SEMVER","events":[{"introduced":"0.3.1"},{"fixed":"0.5.8"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/gogits/gogs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.5.8"}]}]}],"products":[{"vendor":"gogits","product":"gogs"}],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/98695","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"https://github.com/gogits/gogs/commit/83283bca4cb4e0f4ec48a28af680f0d88db3d2c8","tags":["x_refsource_CONFIRM","x_transferred","Exploit","web"]},{"url":"http://seclists.org/fulldisclosure/2014/Nov/31","tags":["mailing-list","x_refsource_FULLDISC","x_transferred","Exploit","web"]},{"url":"http://gogs.io/docs/intro/change_log.html","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://packetstormsecurity.com/files/129116/Gogs-Label-Search-Blind-SQL-Injection.html","tags":["x_refsource_MISC","x_transferred","Exploit","web"]},{"url":"http://www.exploit-db.com/exploits/35237","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred","Exploit"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2014-8681","tags":["advisory"]},{"url":"https://github.com/gogits/gogs/releases/tag/v0.5.8","tags":["web"]},{"url":"https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-8681","tags":["web"]},{"url":"https://www.exploit-db.com/exploits/35237","tags":["web"]},{"url":"https://github.com/gogs/gogs/commit/83283bca4cb4e0f4ec48a28af680f0d88db3d2c8","tags":["web","fix"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0021","tags":["web"]},{"url":"https://seclists.org/fulldisclosure/2014/Nov/31","tags":["web"]},{"url":"https://web.archive.org/web/20150711111508/http://gogs.io/docs/intro/change_log.html#v0.5.8-%40-2014-11-19","tags":["web"]},{"url":"https://github.com/advisories/GHSA-mr6h-chqp-p9g2"},{"url":"https://github.com/gogits/gogs","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2014-8681","description":"SQL injection vulnerability in the GetIssues function in models/issue.go in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.6.x before 0.5.6.1025 Beta allows remote attackers to execute arbitrary SQL commands via the label parameter to user/repos/issues.","status":"published","published":"2014-11-21T15:00:00Z","modified":"2024-08-06T13:26:02.357Z","updated_at":"2026-11-02T14:33:43.206348Z"}],"euvd":[{"id":"EUVD-2021-1361","description":"SQL injection vulnerability in the GetIssues function in models/issue.go in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.6.x before 0.5.6.1025 Beta allows remote attackers to execute arbitrary SQL commands via the label parameter to user/repos/issues.","status":"published","published":"2014-11-21T15:00:00Z","modified":"2024-08-06T13:26:02Z","updated_at":"2026-11-03T01:56:50.592563Z"}],"ghsa":[{"id":"GHSA-mr6h-chqp-p9g2","title":"SQL Injection in gogs.io/gogs","description":"SQL injection vulnerability in the GetIssues function in models/issue.go in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.6.x before 0.5.6.1025 Beta allows remote attackers to execute arbitrary SQL commands via the label parameter to user/repos/issues.","status":"published","published":"2021-06-29T18:32:44Z","modified":"2023-08-29T20:51:18Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L","level":"medium"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:37:02.095916Z"}],"nvd":[{"id":"CVE-2014-8681","description":"SQL injection vulnerability in the GetIssues function in models/issue.go in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.6.x before 0.5.6.1025 Beta allows remote attackers to execute arbitrary SQL commands via the label parameter to user/repos/issues.","status":"published","published":"2014-11-21T15:59:08.133Z","modified":"2026-06-17T00:17:08.91Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:02:57.304171Z"}],"osv":[{"id":"GHSA-mr6h-chqp-p9g2","title":"SQL Injection in gogs.io/gogs","description":"SQL injection vulnerability in the GetIssues function in models/issue.go in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.6.x before 0.5.6.1025 Beta allows remote attackers to execute arbitrary SQL commands via the label parameter to user/repos/issues.","status":"published","published":"2021-06-29T18:32:44Z","modified":"2023-11-08T03:57:45.844565Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L","level":"medium"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T15:46:52.170928Z"},{"id":"GO-2020-0021","title":"SQL Injection in github.com/gogits/gogs","description":"Due to improper sanitization of user input, a number of methods are vulnerable to SQL injection if used with user input that has not been sanitized by the caller.","status":"published","published":"2021-04-14T20:04:52Z","modified":"2024-05-20T16:03:47Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
