TL;DR

what: CISA confirmed active exploitation of CVE-2026-60004, a CVSS 9.8 code injection flaw in Gitea's diffpatch API that plants an executable Git hook and runs shell commands as the Gitea service account.

impact: Any user who can write to a repository gets remote code execution on the Gitea host, and with default open registration that user can be a stranger who registered an account minutes earlier; one reported victim had a miner-like dropper burn more than 70 percent of their VPS CPU until the hosting provider throttled them.

fix: Upgrade to Gitea 1.27.1, then set DISABLE_REGISTRATION to true, REQUIRE_SIGNIN_VIEW to true, and audit every repository for hooks planted before the patch.

who: Every organization running a self-hosted Gitea instance from 1.17 through 1.27.0, especially internet-facing instances with open registration, plus U.S. federal civilian agencies bound by the KEV deadline.