{
  "id": "cve-2026-27775",
  "title": "Gitea pre-receive hook reuses a branch permission check across refs in one push",
  "product": "Gitea Git pre-receive hook",
  "ai_system": "Claude (model/version not identified)",
  "organization": "Anthropic Research and Doyensec; Gitea maintainers",
  "summary": "Gitea caches a positive permission check for one branch and reuses it while processing later refs in the same multi-ref push. A user with a legitimate per-branch maintainer-edit grant could include another protected ref and have the stale authorization reused, allowing writes beyond the granted branch, including protected branches and tags. The advisory reports this on Gitea 1.25.5.",
  "ai_role": "The primary Gitea advisory states Claude found the initial bug and wrote the exploit where applicable; a Doyensec researcher reviewed and personally confirmed the reproduction.",
  "disclosure_date": "2026-06-21",
  "ai_attribution_date": "2026-06-21",
  "classification": "disclosure",
  "classification_note": "The advisory was republished at the project’s request on Jun 21; it explicitly preserves the original private-submission timeline beginning Apr 16 for the coordinated-disclosure window. It identifies 1.25.5 as affected and 1.26.3 as patched.",
  "cves": [
    "CVE-2026-27775"
  ],
  "source_url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-649p-mmhf-85c7",
  "ai_source_url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-649p-mmhf-85c7",
  "remediation": "fix documented",
  "remediation_note": "The advisory recommends evaluating CanMaintainerWriteToBranch for every ref rather than caching the result across the push batch. Fixed version listed: Gitea 1.26.3. Deployment status is not checked.",
  "advisory_url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-649p-mmhf-85c7",
  "checked_date": "2026-11-14",
  "cvss": [
    {
      "cve": "CVE-2026-27775",
      "version": "3.1",
      "score": 8.8,
      "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/27xxx/CVE-2026-27775.json",
      "source_name": "CISA-ADP (ADP; CVE Program record)",
      "checked_date": "2026-11-16"
    }
  ],
  "impacts": [
    {
      "cves": [
        "CVE-2026-27775"
      ],
      "consequences": [
        "data modification",
        "privilege escalation"
      ],
      "conditions": "A per-branch maintainer permission is reused across refs in a single push, granting full repository write access beyond the branch-specific grant.",
      "exploitation": "The cited source does not establish exploitation in the wild.",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/27xxx/CVE-2026-27775.json",
      "checked_date": "2026-11-16"
    }
  ]
}
