Latest Gitea vulnerability: CVE-2026-60004 #

Gitea disclosed that certain versions of Gitea are affected by a remote code execution (RCE) vulnerability within the diffpatch feature. By exploiting this through malicious repository content, an attacker can write custom Git hooks into the underlying repository directory. When these hook scripts are subsequently triggered during Git operations, they execute arbitrary shell commands with the privileges of the Gitea process user. The vulnerability has been designated CVE-2026-60004 and has been rated critical with a CVSS score of 9.8.

On default installations where open self-registration is enabled, successful exploitation allows a remote, unauthenticated attacker, or any user with repository write access, to execute arbitrary commands with the privileges of the Gitea process. Depending on the service account's permission level, successful compromise enables an attacker to extract sensitive credentials and configurations, and may allow for altering build outputs, potentially threatening the integrity of downstream artifacts.

The following versions are affected

  • Gitea: Versions 1.17 through 1.27.0 (inclusive)

    What is Gitea? #

    Gitea is an open-source, self-hosted Git service written in Go that provides web-based repository hosting, issue tracking, and code review capabilities using minimal system resources.

    What is the impact? #

    Successful exploitation of this vulnerability would allow a remote attacker to achieve full remote code execution on the host server with the privileges of the Gitea process, exposing system secrets and credentials while creating potential risk to downstream build pipelines.

    Are any updates or workarounds available? #

    Users are encouraged to update to the latest version as quickly as possible:

    • Gitea: Upgrade to version 1.27.1 or later.

    How to find potentially vulnerable systems with runZero #

    From the Software Inventory, use the following query to locate potentially impacted assets:

    vendor:=Gitea AND product:=Gitea

    Written by Matthew Kienow

    Matthew Kienow is a software engineer and security researcher. Matthew previously worked on the Recog recognition framework, AttackerKB as well as Metasploit's MSF 5 APIs. He has also designed, built, and successfully deployed many secure software solutions; however, often he enjoys breaking them instead. He has presented his research at various security conferences including DerbyCon, Hack In Paris, and CarolinaCon. His research has been cited by CSO, Threatpost and SC Magazine.

    More about Matthew Kienow
    Subscribe Now

    Get the latest news and expert insights delivered in your inbox.

    Welcome to the club! Your subscription to our newsletter is successful.

    Explore more runZero

    Product
    Announcing runZero 5.0: Exposure management built to outpace AI-driven attacks
    When you're up against AI, every minute counts. Get deep, actionable intelligence across your entire attack surface to close the gaps and hold the...
    Product Videos
    runZero 5.0: Platform Demo
    With the new 5.0 release, runZero is giving defenders the edge they need to succeed in the AI-attack era.
    runZero Perspective
    BOD 26-04: A new era of prioritized remediation
    A complete breakdown of CISA's BOD 26-04 directive. Learn how the shift to SSVC, risk-based KEV prioritization, and 3-day remediation impacts your...
    runZero Perspective
    Dawn of the apex agentic adversary
    When agentic AI can weaponize exploits in seconds, visibility is everything. Stop the predator with runZero’s exposure management for the AI-attack...
    Webcasts
    Mind the gaps: securing the modern IT/OT attack surface
    In this webcast, HD Moore and GigaOm Analyst Chris Ray discuss key methods for hardening OT defenses and share insights from the new OT report.
    Webcasts
    runZero Hour, Ep. 32: AI-pocalypse now? Why the 2026 DBIR is actually good news
    In this episode of runZero Hour, Tod Beardsley, Brianna Cluck, and Verizon's Alex Pinto broke down 2026 DBIR trends, AI threats, and runZero 5.0.
    Podcasts
    The shadow era AI, exploits, and cybersecurity's 90s comeback
    HD Moore explains how AI is turning hacking back to the 90s, generating permanent exploit skeleton keys and breaking traditional defense.
    Talks
    Identifying exposures at scale with BloodHound OpenGraph
    Traditional exposure management misses hidden attack paths. Learn how BloodHound and Cypher queries can uncover vulnerabilities beyond individual...

    See Results in Minutes

    See & secure your total attack surface. Even the unknowns & unmanageable.