CVE-2026-52806 PUBLISHED

Gogs: RCE via git rebase --exec argument injection in pull request merge

Assigner: GitHub_M
Reserved: 08.06.2026 Published: 24.06.2026 Updated: 25.06.2026

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. This vulnerability is fixed in 0.14.3.

Metrics

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

Product Status

Vendor gogs
Product gogs
Versions
  • Version < 0.14.3 is affected

References

Problem Types

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