{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:*",
            "extracted_events": [
              {
                "introduced": "1.17"
              },
              {
                "fixed": "1.27.1"
              },
              {
                "introduced": "1.17.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "CPE_RANGE"
            ]
          },
          "events": [
            {
              "introduced": "4563148a61ba892e8f2bb66342f00a950bcd5315"
            },
            {
              "fixed": "a62dfffbe7d3a454c2f2d3c4b2788ba432724a5f"
            }
          ],
          "repo": "https://github.com/go-gitea/gitea",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-rcr6-4jqh-j84m"
  ],
  "database_specific": {
    "cna_assigner": "mitre",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/60xxx/CVE-2026-60004.json"
  },
  "details": "Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.",
  "id": "CVE-2026-60004",
  "modified": "2026-08-28T03:30:44.713127018Z",
  "published": "2026-08-26T19:45:00Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/60xxx/CVE-2026-60004.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-60004"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/0xBlackash/CVE-2026-60004"
    },
    {
      "type": "ARTICLE",
      "url": "https://blog.gitea.com/release-of-1.27.1/"
    },
    {
      "type": "ARTICLE",
      "url": "https://www.runzero.com/blog/gitea/"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}