{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.26.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "f09bea7af13bd00d07a34252468389d15de39a8d"
            }
          ],
          "repo": "https://github.com/go-gitea/gitea",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Gitea",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27780.json"
  },
  "details": "Gitea versions before 1.26.0 do not fail closed on bufio.Scanner errors while processing pre-receive hook input, allowing oversized input to bypass branch-protection checks.",
  "id": "CVE-2026-27780",
  "modified": "2026-07-15T01:49:19.357645355Z",
  "published": "2026-07-03T20:19:37.968Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://blog.gitea.com/release-of-1.26.0/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27780.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/go-gitea/gitea/releases/tag/v1.26.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27780"
    },
    {
      "type": "FIX",
      "url": "https://github.com/go-gitea/gitea/pull/36963"
    }
  ],
  "schema_version": "1.8.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"
    }
  ],
  "summary": "Gitea pre-receive hook can miss branch-protection checks after scanner errors"
}