AI Science Tracker

Gitea pre-receive hook reuses a branch permission check across refs in one push

Gitea Git pre-receive hook · AI involvement attributed to Claude (model/version not identified)

Finding and attribution

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.

Product: Gitea Git pre-receive hook. AI system: Claude (model/version not identified). Team / organization: Anthropic Research and Doyensec; Gitea maintainers.

CVE identifiers: CVE-2026-27775.

AI and human contribution (source account): 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.

Human involvement is only described where the source account establishes it; unknown involvement does not mean none. Vendor confirmation of a flaw does not confirm every claim about AI contribution.

Discovery context: 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.

Remediation status: fix documented. 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.

A source-documented fix does not establish installed patches or current safety. Source checking does not independently reproduce the finding or establish observed exploitation.

Disclosed 21 Jun 2026. AI attribution dated 21 Jun 2026. Sources checked 14 Nov 2026; these are separate dates, not a live installation check.

Recorded CVSS: High · highest recorded score 8.8. Documented technical effects: data modification, privilege escalation.

Severity, consequences and exploitation evidence

Case grouping uses the highest recorded CVSS score, with its version-specific severity band. It is descriptive, not a combined or editorial risk index. All recorded assessments remain below; scores from different versions and sources may disagree. CVSS specifications define version-specific scoring and severity bands.

CVE-2026-27775: data modification, privilege escalation.
Prerequisites / affected scope: A per-branch maintainer permission is reused across refs in a single push, granting full repository write access beyond the branch-specific grant..
Exploitation evidence: The cited source does not establish exploitation in the wild.. Impact source · checked 16 Nov 2026.

Documented fix: 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.

Original evidence

Download this source record (JSON)

Open this case in the interactive tracker · Browse all static security cases