{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0.5.5"
              },
              {
                "last_affected": "0.12.2"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "54930c001df8316d8dfda450b5c39379df2cc1b1"
            },
            {
              "last_affected": "253b2bef4c26925d2fd0555aa8911cd21fb68b8c"
            }
          ],
          "repo": "https://github.com/gogs/gogs",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {},
  "details": "The git hook feature in Gogs 0.5.5 through 0.12.2 allows for authenticated remote code execution. There can be a privilege escalation if access to this hook feature is granted to a user who does not have administrative privileges. NOTE: because this is mentioned in the documentation but not in the UI, it could be considered a \"Product UI does not Warn User of Unsafe Actions\" issue.",
  "id": "CVE-2020-15867",
  "modified": "2026-08-07T11:31:11.974335313Z",
  "published": "2020-10-16T14:15:11.627Z",
  "references": [
    {
      "type": "EVIDENCE",
      "url": "http://packetstormsecurity.com/files/162123/Gogs-Git-Hooks-Remote-Code-Execution.html"
    },
    {
      "type": "EVIDENCE",
      "url": "https://www.fzi.de/en/news/news/detail-en/artikel/fsa-2020-3-schwachstelle-in-gitea-1125-und-gogs-0122-ermoeglicht-ausfuehrung-von-code-nach-authent/"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}