{
  "id": "CVE-2026-52806",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-52806",
  "published_at": "2026-06-24T20:21:07.65Z",
  "title": "Gogs: RCE via git rebase --exec argument injection in pull request merge",
  "vendor": "gogs",
  "product": "gogs",
  "cvss": {
    "score": 9.9,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-07-10T12:55:17Z",
    "first_seen_at": null,
    "days_after_publication": 15.7,
    "source": "metasploit",
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/gogs_rebase_rce.rb"
  },
  "poc_repo_count": 0,
  "exploit_count": 2,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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. This vulnerability is fixed in 0.14.3.",
  "cwe": "CWE-77",
  "cvss_by_source": {
    "cna": 9.9
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "gogs",
        "product": "gogs",
        "ranges": [
          "\u003c 0.14.3"
        ],
        "fixed_in": [
          "0.14.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade gogs to 0.14.3 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/gogs/gogs/security/advisories/GHSA-qf6p-p7ww-cwr9"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/gogs/gogs/pull/8301"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/gogs/gogs/commit/a9dbafbfd8e1020bacc626420238c01d75d03364"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/gogs/gogs/releases/tag/v0.14.3"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/gogs_rebase_rce.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: Gogs Git Rebase Argument Injection RCE (exploit/multi/http/gogs_rebase_rce)",
      "published_at": "2026-07-10T12:55:17Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-52806.yaml",
      "source": "nuclei",
      "title": "nuclei template: Gogs \u003c= 0.14.2 - Authenticated RCE via git rebase Argument Injection",
      "published_at": "2026-08-17T05:32:50Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
