Gogs <= 0.14.2 - Authenticated RCE via git rebase Argument Injection
| Reporter | Title | Published | Views | Family All 20 |
|---|---|---|---|---|
| Exploit for CVE-2026-52806 | 28 May 202616:35 | – | githubexploit | |
| CVE-2026-52806 | 24 Jun 202620:21 | – | attackerkb | |
| The vulnerability of the Merge() function in the Gogs automated Git repository creation tool allows a hacker to execute arbitrary code. | 8 Jul 202600:00 | – | bdu_fstec | |
| CVE-2026-52806 | 19 Jun 202602:19 | – | circl | |
| CVE-2026-52806 | 24 Jun 202620:21 | – | cve | |
| CVE-2026-52806 Gogs: RCE via git rebase --exec argument injection in pull request merge | 24 Jun 202620:21 | – | cvelist | |
| EUVD-2026-39073 | 24 Jun 202620:21 | – | euvd | |
| Gogs vulnerable to RCE via git rebase --exec argument injection in pull request merge | 23 Jun 202617:02 | – | github | |
| Gogs Git Rebase Argument Injection RCE | 17 Mar 202600:00 | – | metasploit | |
| CVE-2026-52806 | 24 Jun 202621:16 | – | nvd |
10
id: CVE-2026-52806
info:
name: Gogs <= 0.14.2 - Authenticated RCE via git rebase Argument Injection
author: DhiyaneshDk,pdteam
severity: critical
description: |
Gogs is an open source self-hosted Git service. Prior to 0.14.3, Gogs allows authenticated users to achieve Remote Code Execution (RCE) on the server by creating a pull request with a specially crafted branch name that injects the --exec flag into the git rebase command during the "Rebase before merging" merge operation.
impact: |
Authenticated users can execute arbitrary code on the server, potentially leading to full system compromise.
remediation: This vulnerability is fixed in 0.14.3.
reference:
- https://www.cve.org/CVERecord?id=CVE-2026-52806
- https://github.com/portbuster1337/CVE-2026-52806
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/gogs_rebase_rce.rb
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
cvss-score: 9.9
cve-id: CVE-2026-52806
epss-score: 0.01464
epss-percentile: 0.71437
cwe-id: CWE-77
cpe: cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: gogs
product: gogs
shodan-query: title:"Sign In - Gogs"
google-query: intitle:"Sign In - Gogs"
fofa-query: title="sign in - gogs"
tags: cve,cve2026,gogs,rce,argument-injection,git,authenticated,passive,vkev
http:
- method: GET
path:
- "{{BaseURL}}/user/login"
matchers-condition: and
matchers:
- type: word
part: body
words:
- '<meta property="og:description" content="Gogs is a painless self-hosted Git service.">'
- '<meta name="description" content="Gogs is a painless self-hosted Git service" />'
- "<title>Sign In - Gogs</title>"
condition: or
- type: status
status:
- 200
- type: dsl
dsl:
- compare_versions(gogs_version, '<= 0.14.2')
extractors:
- type: regex
name: gogs_version
part: body
group: 1
regex:
- 'Version: (\d+\.\d+\.\d+)'
internal: true
- type: regex
group: 1
regex:
- 'Version: (\d+\.\d+\.\d+)'
part: body
# digest: 4b0a0048304602210086a1d403da68c41abdb3b1e92934acb52941693faf5942803d8a69c756ac747f022100843d4439fc0ceb7a4781047a14624b50cc02ce99bb75e5fe1e93c5af06540f36:922c64590222798bb761d5b6d8e72950Data
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
17 Aug 2026 05:32Current
8.8High risk
Vulners AI Score8.8
CVSS 3.19.9
EPSS0.01464
SSVC