{"id":"CVE-2014-8682","published":"2014-11-21T15:00:00Z","modified":"2024-08-06T13:26:02Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.32616,"percentile":0.98379,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.exploit-db.com/exploits/35238","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/98694","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://packetstormsecurity.com/files/129117/Gogs-Repository-Search-SQL-Injection.html","tags":["x_refsource_MISC"]},{"url":"http://seclists.org/fulldisclosure/2014/Nov/33","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://gogs.io/docs/intro/change_log.html","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/archive/1/533995/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://www.securityfocus.com/bid/71187","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://github.com/gogits/gogs/commit/0c5ba4573aecc9eaed669e9431a70a5d9f184b8d","tags":["x_refsource_CONFIRM"]}],"priority":{"score":24.7,"factors":[{"name":"EPSS percentile","points":19.68},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2014-11-14"},"pocGithub":{"count":1,"skipped":0,"earliest":"2018-12-04","earliestUrl":"https://github.com/nihal1306/gogs","repos":[{"name":"nihal1306/gogs","url":"https://github.com/nihal1306/gogs","stars":0,"created":"2018-12-04"}]},"nuclei":[{"id":"CVE-2014-8682","name":"Gogs (Go Git Service) - SQL Injection","severity":"high","path":"http/cves/2014/CVE-2014-8682.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2014/CVE-2014-8682.yaml"}],"first":{"date":"2014-11-14","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/35238"},"provenance":"source"},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":[">=0.3.1, <0.5.8"],"patched":["0.5.8"],"from":["GHSA-g6xv-8q23-w2q3","GO-2022-0831"],"provenance":"source"}],"summary":{"text":"Gogs (Go Git Service) versions 0.3.1-9 through 0.5.x before 0.5.6.1105 Beta contain SQL injection flaws in the repository search endpoint (api/v1/repos/search, handled in models/repo.go) and the user search endpoint (api/v1/users/search, handled in models/user.go). A remote attacker can exploit either flaw by supplying crafted input in the q parameter to execute arbitrary SQL commands.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:43:18Z"},"euvd":{"id":"EUVD-2021-1320","exploited":false,"provenance":"source"},"exploits":[{"id":35238,"url":"https://www.exploit-db.com/exploits/35238","title":"Gogs - 'users'/'repos' '?q' SQL Injection","date":"2014-11-14","verified":false,"provenance":"source"}],"exploitRefs":["http://www.exploit-db.com/exploits/35238","http://packetstormsecurity.com/files/129117/Gogs-Repository-Search-SQL-Injection.html","https://www.exploit-db.com/exploits/35238","http://packetstormsecurity.com/files/129116/Gogs-Label-Search-Blind-SQL-Injection.html"],"lineage":{"familyId":"fam-gogs-io-gogs-cve-2014-8681","parents":[{"from":"CVE-2014-8681","to":"CVE-2014-8682","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["gogs.go","models/repo.go","models/user.go","templates/.VERSION"],"commits":["https://github.com/gogits/gogs/commit/83283bca4cb4e0f4ec48a28af680f0d88db3d2c8","https://github.com/gogits/gogs/commit/0c5ba4573aecc9eaed669e9431a70a5d9f184b8d"],"basis":"shared function","functions":["SearchRepositoryByName"]},{"kind":"similar","provenance":"machine","score":0.49,"basis":"same package + description similarity"}]}],"children":[{"from":"CVE-2014-8682","to":"CVE-2014-8683","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["cmd/web.go","gogs.go","templates/.VERSION"],"commits":["https://github.com/gogits/gogs/commit/0c5ba4573aecc9eaed669e9431a70a5d9f184b8d","https://github.com/gogits/gogs/commit/3abc41cccab2486012b46305827433ad6f5deade"],"basis":"shared function","functions":["checkVersion"]}]}]}}