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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Gogs - 'users'/'repos' '?q' SQL Injection EDB-35238 · webapps · Nov 14, 2014
GitHub 1 repository
-
nihal1306/gogs ★ 0 · Dec 4, 2018
CVE-2014-8682
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Gogs (Go Git Service) - SQL Injection http/cves/2014/CVE-2014-8682.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | gogs.io/gogs | >= 0.3.1, < 0.5.8 | 0.5.8 | GHSA-g6xv-8q23-w2q3 |
References
- 35238 exploit
- gogs-cve20148682-sql-injection(98694) vdb-entry
- http://packetstormsecurity.com/files/129117/Gogs-Repository-Search-SQL-Injection.html
- 20141114 CVE-2014-8682 Multiple Unauthenticated SQL Injections in Gogs mailing-list
- http://gogs.io/docs/intro/change_log.html
- 20141114 CVE-2014-8682 Multiple Unauthenticated SQL Injections in Gogs mailing-list
- 71187 vdb-entry
- https://github.com/gogits/gogs/commit/0c5ba4573aecc9eaed669e9431a70a5d9f184b8d