{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "1.25.5"
              },
              {
                "last_affected": "1.25.5"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "f913d90ab664c1deccdfbe8c563abb13e897d62b"
            },
            {
              "fixed": "4aa0d704f2c7d30351016b740bfc45247fd77efa"
            }
          ],
          "repo": "https://github.com/go-gitea/gitea",
          "type": "GIT"
        }
      ],
      "versions": [
        "1.25.5"
      ]
    }
  ],
  "aliases": [
    "GHSA-649p-mmhf-85c7"
  ],
  "database_specific": {
    "cna_assigner": "Gitea",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27775.json"
  },
  "details": "Gitea 1.25.5 caches a branch-specific write-permission result across multiple refs in one pre-receive hook session, allowing a per-branch maintainer-edit grant to be reused for other refs and escalate to full repository write access.",
  "id": "CVE-2026-27775",
  "modified": "2026-07-15T01:49:22.025008187Z",
  "published": "2026-07-03T20:19:37.275Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://blog.gitea.com/release-of-1.26.3-and-1.26.4/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27775.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/go-gitea/gitea/releases/tag/v1.26.3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-649p-mmhf-85c7"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27775"
    },
    {
      "type": "FIX",
      "url": "https://github.com/go-gitea/gitea/pull/38151"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Gitea pre-receive hook permission cache allows full repository write access"
}