CVE-2014-8682 is a high-severity (CVSS 7.3) SQL Injection vulnerability in gogs.io/gogs. 6 public exploit references exist, so weaponization risk is real. A fix is available for gogs.io/gogs — see the affected versions and patch details below.
SQL Injection in Gogs
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2014-8682 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,386 CVEs with a current EPSS score, this one falls in the 10–50% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
gogs.io/gogsReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | gogs.io/gogs | ≥ 0.3.1&&< 0.5.8 | 0.5.8go get gogs.io/gogs@v0.5.8 |
Affected Products
gogsgogitsResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Gogs - 'users'/'repos' '?q' SQL Injection
by Timo Schmid · Nov 14, 2014
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for gogs.io/gogs, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update gogs.io/gogs to 0.5.8 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2014-8682 is resolved across your whole dependency graph.
Workarounds
Until you can upgrade, make sure every query built from user input uses parameterised statements or a prepared-statement API rather than string concatenation, and reduce the database account's privileges so an injected query cannot read or alter data beyond what the feature needs.
How to detect CVE-2014-8682
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2014-8682 -u https://target- Template
- Gogs (Go Git Service) - SQL Injection
- Severity
- high
- Impact
- Successful exploitation of this vulnerability could lead to unauthorized access, data leakage, and potential compromise of the entire system.
- Remediation
- Apply the latest security patches and updates provided by the Gogs project to mitigate the SQL Injection vulnerability.
Template by ProjectDiscovery nuclei-templates (dhiyaneshDK, daffainfo), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2014-8682 in your dependencies?
Find it across Go, including transitive dependencies.