Phying News
Curated security research, vulnerabilities, advisories and tools for practitioners.

CVE-2026-60004: Gitea diffpatch remote code execution with public PoC

github.com | vulnerability | Critical | CVE-2026-60004 | #rce | #gitea | #git | #public-poc | #featured | #open-source | #advisory | #cve-2026-60004 | #git-hook

Summary

Gitea's diffpatch endpoint can be abused by repository-controlled content to install and trigger a Git hook in a temporary bare clone, resulting in arbitrary command execution as the Gitea service account. Versions from 1.17 up to, but not including, 1.27.1 are affected. With open registration, a visitor can register an ordinary account and create the required repository. The official advisory includes a complete PoC; version 1.27.1 contains the fix.

Why it matters

Successful exploitation may expose app.ini, process environment secrets, mounted repositories, database and OAuth or integration credentials, and other reachable services. Upgrade to Gitea 1.27.1 or later immediately. Until patched, restrict open registration and repository creation, and review temporary-filesystem and service-account permissions.
Vendor
Gitea
Product
Gitea
Affected versions
Gitea >= 1.17 and < 1.27.1
CVSS
9.8
Published
Collected

original ↗

Related coverage

back