Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gogs.io/gogs
  4. ›
  5. CVE-2026-52806

CVE-2026-52806: Gogs vulnerable to RCE via git rebase --exec argument injection in pull request merge

June 23, 2026 (updated July 21, 2026)

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.

References

  • github.com/advisories/GHSA-qf6p-p7ww-cwr9
  • github.com/gogs/gogs/commit/a9dbafbfd8e1020bacc626420238c01d75d03364
  • github.com/gogs/gogs/pull/8301
  • github.com/gogs/gogs/releases/tag/v0.14.3
  • github.com/gogs/gogs/security/advisories/GHSA-qf6p-p7ww-cwr9
  • nvd.nist.gov/vuln/detail/CVE-2026-52806

Code Behaviors & Features

Detect and mitigate CVE-2026-52806 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.14.3

Fixed versions

  • 0.14.3

Solution

Upgrade to version 0.14.3 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

go/gogs.io/gogs/CVE-2026-52806.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:18 +0000.