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.
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.
Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.
Exploit-DB 1
- Gogs - 'label' SQL Injection EDB-35237 · webapps · Nov 14, 2014
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/gogits/gogs | >= 0.3.1, < 0.5.8 | 0.5.8 | GHSA-mr6h-chqp-p9g2 |
| Go | github.com/gogits/gogs | < 0.5.8 | 0.5.8 | GO-2020-0021 |
| Go | gogs.io/gogs | >= 0.3.1, < 0.5.8 | 0.5.8 | GHSA-mr6h-chqp-p9g2 |
References
- gogs-cve20148681-sql-injection(98695) vdb-entry
- https://github.com/gogits/gogs/commit/83283bca4cb4e0f4ec48a28af680f0d88db3d2c8
- 20141114 CVE-2014-8681 Blind SQL Injection in Gogs label search mailing-list
- http://gogs.io/docs/intro/change_log.html
- http://packetstormsecurity.com/files/129116/Gogs-Label-Search-Blind-SQL-Injection.html
- 35237 exploit