CVE-2026-60004 Scanner

CVE-2026-60004 Scanner - Remote Code Execution (RCE) vulnerability in Gitea

Short Info


Level

Critical

Single Scan

Single Scan

Can be used by

Asset Owner

Estimated Time

10 seconds

Time Interval

17 days 20 hours

Scan only one

Domain, Subdomain, IPv4

Toolbox

Gitea is a community-managed lightweight code hosting solution written in Go that is popular among developers and organizations for version control using Git. It is used widely for code collaboration, supporting features like bug tracking, wikis, and code review, making it a vital component in the software development lifecycle. Organizations rely on Gitea to host repositories on their own infrastructure, providing more control compared to other cloud-hosted solutions. Its user-friendly interface attracts small to medium-sized teams for project management and software development workflows. Being open source, Gitea's community delivers regular updates and enhancements, which help in sustaining its popularity in the DevOps pipeline. However, vulnerabilities in such tools can compromise the security of the software development environment.

The vulnerability in question affects Gitea versions 1.17 through 1.27.0 and is a critical remote code execution flaw. This phenomenon allows an attacker with write access to execute arbitrary commands as the Gitea service account by exploiting the diffpatch endpoint through unprotected open registration. The vulnerability emerges from an add/add collision that writes an executable Git hook into the repository's GIT_DIR, highlighting a severe security gap. This kind of vulnerability is particularly dangerous because it can be exploited without the need for user interaction (UI:N), increasing its severity. The high CVSS score of 9.8 underscores the critical nature of this issue.

The technical details of the vulnerability revolve around the ability to create a Git hook that is executable, which is accomplished through sending a crafted patch via the diffpatch API endpoint. The process involves using a series of HTTP requests to misconfigure the repository, culminating in the execution of arbitrary commands. It specifically leverages the system's inability to properly validate input and control filesystem modifications, enabling the injection of malicious scripts into the repository infrastructure. The attack scenario employs systematic exploitation through registration, repository creation, and payload deployment phases.

Exploiting this RCE vulnerability can lead to severe consequences including widespread unauthorized access, data theft, and potential full compromise of the server hosting Gitea, affecting all repositories. Unauthorized command execution by the attacker could pivot into larger attacks against the network system, leaking sensitive information, and damaging business workflows. The potential for altering or destroying data on a massive scale could disrupt operations, devalue intellectual property, and reduce user trust in the service among collaborators.

REFERENCES

Get started to protecting your digital assets