The Gogs advisory says an authenticated user can turn a crafted branch name into server-level command execution when a pull request is merged with “Rebase before merging.”Gogs rates the flaw Critical at 9.9 under CVSS 3.1. The vulnerable path runs Git on the Gogs server, so the immediate execution context is the Gogs process user.
What it allows
How Does CVE-2026-52806 Reach Server Execution?
The Gogs advisory says the pull request base branch is checked as a valid Git reference. That check does not make the name safe as a command argument. During a rebase merge, Gogs passes the branch name to Git without an option separator, allowing Git to interpret part of it as an option.
Execution occurs in the Gogs process context, according to the advisory. This creates a risk for other repositories and credentials accessible to that process on the same server. Use the Vulnerability Intelligence platform to prioritize affected assets, and read the Gogs security advisory overview for separate Gogs fixes.
What Is Known About CVE-2026-52806 Exploitation?
The Gogs advisory includes a published proof of concept and reports a successful test against Gogs 0.14.2. In a GitHub repository-name search prepared on 26 November 2026, Brandefense counted one public repository naming this CVE. The unit is a repository, not a confirmed attack or affected installation.
CVE-2026-52806 was absent from CISA KEV catalog version 2026.11.25. That catalog status does not resolve whether a particular Gogs server was compromised. Investigate local evidence before making an incident determination.
Who is affected
Which Gogs Versions and Settings Are Affected?
Gogs lists versions before 0.14.3 that support “Rebase before merging” as affected, including the 0.14.2 supported release. The advisory also identifies a 0.15.0 development build at commit b53d3162. Administrators should inspect the running build, including development deployments, rather than assume a higher-looking version is fixed.
Exploitation requires an account with repository owner or admin rights to enable rebase, or write access where an owner already enabled it. Rebase merging is disabled by default, but a user who can create a repository can enable it for that repository. Open registration can let an outside party obtain the account needed for that route.
The advisory says Linux, macOS, and Windows deployments can be affected across binary, container, and source installations. Use the patch management process to record the deployed version and the result of the update.
Timeline
- 2026-06-07
Gogs released version 0.14.3, which includes the pull request rebase merge fix.
- 2026-06-19
The Gogs security advisory was published with a proof of concept and a Critical CVSS 3.1 score of 9.9.
- 2026-06-24
NVD published its CVE-2026-52806 record.
What to do
-
Inventory Gogs installations
Record each Gogs server's active version, installation method, registration setting, and repository rebase settings. Prioritize servers where untrusted users can register or hold repository access.
-
Upgrade affected servers
Upgrade supported installations to Gogs 0.14.3 or a later fixed release. The 0.14.3 release page recommends 0.14.4 for new updates.
-
Verify the running build
After updating and restarting, verify the active Gogs build is a fixed release. Review development builds separately because the advisory identifies an affected 0.15.0 development commit.
-
Restrict the vulnerable path until patched
As interim risk reduction, restrict account registration and repository creation, and review where rebase merging is enabled. These controls reduce access paths but do not replace the update.
-
Review merge activity
Check pull request merge errors, relevant server logs, and unexpected actions by the Gogs process user. The advisory describes an error after execution, so a failed merge is not proof that execution was prevented.
What Brandefense can do
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2026-52806 in Brandefense Atlas
The Atlas record of CVE-2026-52806: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
Frequently Asked Questions
Can any Gogs account trigger CVE-2026-52806?
An authenticated repository owner or admin can enable rebase merging in their repository. A user with write access can use the path only when the repository owner already enabled rebase merging.
Is rebase merging enabled by default?
The Gogs advisory says it is disabled by default. A repository owner or admin can enable it, so the setting must be checked for each exposed repository.
Which Gogs release contains the fix?
Gogs lists 0.14.3 as the patched version. Its 0.14.3 release page recommends updating directly to 0.14.4, and administrators should verify the active build after the change.
Does a failed pull request merge rule out server execution?
No. The Gogs advisory describes a later merge error after the vulnerable rebase step has already run. Review server activity and logs rather than relying on the merge result alone.