Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐹
🐹 Go
Not in CISA KEV
HIGH severity

CVE-2014-8682 — gogs

HIGHFix: gogits/gogs@0c5ba45

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

Also known asGO-2022-0831
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
6 known
Exploitation data as of Oct 9, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
33.4%probability of exploitation in next 30 days
Moderate Risk0.00%
Lower risk than most CVEs98th percentile — riskier than 98% of all scored CVEsHighest risk
20.3%43.5%66.7%89.9%74.9%33.4%Apr 26Aug 26Oct 26

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

1 pkg affected
🐹gogs.io/gogs

Real-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

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐹Gogogs.io/gogs≥ 0.3.1&&< 0.5.80.5.8go get gogs.io/gogs@v0.5.8

Affected Products

1 product · 6 configurations
Application
gogsgogits
≤ 0.5.5
5 versions
0.3.1-90.4.10.4.20.5.00.5.2
Exploits & PoCs
6

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

EDB-35238webappsmultiple

Gogs - 'users'/'repos' '?q' SQL Injection

by Timo Schmid · Nov 14, 2014

Detection & mitigation playbook

Open-source dependency
  1. Detect

    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.

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

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

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.
O3 Security · Impact-Aware SCA

Is CVE-2014-8682 in your dependencies?

Find it across Go, including transitive dependencies.

CVE-2014-8682: gogs SQL Injection — Fixed in 0.5.8