Vulnerability advisory

CVE-2026-60004

Published Updated OSV record ↗

Also known as BIT-gitea-2026-60004GHSA-rcr6-4jqh-j84mGO-2026-6433

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/go-gitea/gitea ↗
4563148a61ba892e8f2bb66342f00a950bcd5315 to before a62dfffbe7d3a454c2f2d3c4b2788ba432724a5fa62dfffbe7d3a454c2f2d3c4b2788ba432724a5f
Also listed as affected (20)
  • v1.27.0
  • v1.27.0-rc0
  • v1.28.0-dev
  • v1.27.0-dev
  • v1.26.0-dev
  • v1.25.0-dev
  • v1.24.0-dev
  • v1.22.0-rc1
  • v1.23.0-dev
  • v1.22.0-rc0
  • v1.21.0-rc0
  • v1.22.0-dev
  • v1.20.0-rc0
  • v1.21.0-dev
  • v1.20.0-dev
  • v1.19.0-rc0
  • v1.18.0-rc0
  • v1.19.0-dev
  • v1.18.0-dev
  • v1.17.0-dev

Description

Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.

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