Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

Gogs Pull Request Rebase RCE (CVE-2026-52806)

CVE-2026-52806 is an argument injection flaw in the Gogs pull request rebase merge path.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-52806
Vendor
Gogs
Affected Product
Gogs
Exploitation
Not confirmed
Published
2026-06-19

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

  1. 2026-06-07

    Gogs released version 0.14.3, which includes the pull request rebase merge fix.

  2. 2026-06-19

    The Gogs security advisory was published with a proof of concept and a Critical CVSS 3.1 score of 9.9.

  3. 2026-06-24

    NVD published its CVE-2026-52806 record.

What to do

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

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

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

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

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

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.

Sources

  1. RCE via git rebase argument injection in pull request mergeGogs
  2. Gogs release 0.14.3Gogs
  3. CVE-2026-52806 recordNVD
  4. Known Exploited Vulnerabilities CatalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →