{"id":"GHSA-g6xv-8q23-w2q3","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.","aliases":["CVE-2014-8682","GO-2022-0831"],"modified":"2024-08-21T15:58:52.308849Z","published":"2021-06-29T18:32:48Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-89"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2021-05-20T16:59:51Z"},"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"}],"affected":[{"package":{"name":"gogs.io/gogs","ecosystem":"Go","purl":"pkg:golang/gogs.io/gogs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.3.1"},{"fixed":"0.5.8"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-g6xv-8q23-w2q3/GHSA-g6xv-8q23-w2q3.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"}]}