{"id":"CVE-2014-8682","aliases":["EUVD-2021-1320","GHSA-g6xv-8q23-w2q3","GO-2022-0831"],"status":"published","title":"SQL Injection in Gogs","description":"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":{"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.32616,"percentile":0.98351,"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:09Z","exploits":[{"source":"exploitdb","id":"EDB-35238","title":"Gogs - 'users'/'repos' '?q' SQL Injection","type":"webapps","platform":"multiple","date":"2014-11-14","url":"https://www.exploit-db.com/exploits/35238"},{"source":"nuclei","id":"CVE-2014-8682","title":"Gogs (Go Git Service) - SQL Injection","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2014/CVE-2014-8682.yaml"},{"source":"pocgithub","id":"nihal1306/gogs","title":"nihal1306/gogs","date":"2018-12-04","url":"https://github.com/nihal1306/gogs"}],"fixes":[{"ecosystem":"Go","package":"gogs.io/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":"osv","ecosystem":"Go","package":"gogs.io/gogs","ranges":[{"type":"SEMVER","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"}]}]}],"products":[{"vendor":"gogits","product":"gogs"}],"references":[{"url":"http://www.exploit-db.com/exploits/35238","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred","Exploit","web"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/98694","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"http://packetstormsecurity.com/files/129117/Gogs-Repository-Search-SQL-Injection.html","tags":["x_refsource_MISC","x_transferred","Exploit","web"]},{"url":"http://seclists.org/fulldisclosure/2014/Nov/33","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","web"]},{"url":"http://www.securityfocus.com/archive/1/533995/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/71187","tags":["vdb-entry","x_refsource_BID","x_transferred","Exploit","web"]},{"url":"https://github.com/gogits/gogs/commit/0c5ba4573aecc9eaed669e9431a70a5d9f184b8d","tags":["x_refsource_CONFIRM","x_transferred","Exploit","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2014-8682","tags":["advisory"]},{"url":"https://github.com/gogits/gogs/releases/tag/v0.5.8","tags":["web"]},{"url":"https://www.exploit-db.com/exploits/35238","tags":["web"]},{"url":"http://packetstormsecurity.com/files/129116/Gogs-Label-Search-Blind-SQL-Injection.html","tags":["web"]},{"url":"http://seclists.org/fulldisclosure/2014/Nov/31","tags":["web"]},{"url":"https://github.com/advisories/GHSA-g6xv-8q23-w2q3","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2014-8682","description":"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.","status":"published","published":"2014-11-21T15:00:00Z","modified":"2024-08-06T13:26:02.264Z","updated_at":"2026-11-02T14:33:43.206348Z"}],"euvd":[{"id":"EUVD-2021-1320","description":"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.","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-g6xv-8q23-w2q3","title":"SQL Injection in Gogs","description":"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.","status":"published","published":"2021-06-29T18:32:48Z","modified":"2023-01-09T05:04:48Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:36:10.502376Z"}],"nvd":[{"id":"CVE-2014-8682","description":"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.","status":"published","published":"2014-11-21T15:59:09.773Z","modified":"2026-06-17T00:17:09.033Z","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-g6xv-8q23-w2q3","title":"SQL Injection in Gogs","description":"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.","status":"published","published":"2021-06-29T18:32:48Z","modified":"2024-08-21T15:58:52.308849Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T15:46:47.472172Z"},{"id":"GO-2022-0831","title":"SQL Injection in Gogs in gogs.io/gogs","description":"SQL Injection in Gogs in gogs.io/gogs","status":"published","published":"2024-08-21T15:29:04Z","modified":"2026-03-03T04:52:17.681533Z","updated_at":"2026-11-02T15:47:00.918515Z"}]}}
