Vulnerability advisory

GO-2026-6433

Gitea: Remote Code Execution via diffpatch Git Hook Installation in gitea.dev

Published Updated OSV record ↗

Also known as BIT-gitea-2026-60004CVE-2026-60004GHSA-rcr6-4jqh-j84m

Severity

Severity not reported.

Affected versions

AffectedFixed in
1.17.0 and laterNo fix listed

gitea.dev Go

AffectedFixed in
All versions before 1.27.11.27.1

Description

Gitea: Remote Code Execution via diffpatch Git Hook Installation in gitea.dev

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools