Advisory

GHSA-vhq7-fwwh-7hjf

Also known as: CVE-2026-27780, GO-2026-6346

Summary

Gitea pre-receive hook scanner errors allow branch-protection bypass

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-07-03 21:31 UTC
Modified
2026-09-10 15:25 UTC

Affected packages and fixes

code.gitea.io/gitea

Go · All systems

Affected

  • introduced 0, fixed 1.26.0 (semver)

Fixed versions

1.26.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences