Skip to main content

Gitea CVE-2026-60004

| EUVDEUVD-2026-66708 CRITICAL
Code Injection (CWE-94)
N/A vendor:alpine GHSA-rcr6-4jqh-j84m
9.8
CVSS 3.1 · Vendor: vendor:alpine
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed Gitea instance
  2. Delivery
    Send crafted request with injected code
  3. Exploit
    Trigger code injection (CWE-94)
  4. Execution
    Execute arbitrary code on server
  5. Impact
    Steal secrets and pivot to CI/CD

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions - remote unauthenticated exploitation is possible against a network-reachable Gitea instance, consistent with the CVSS vector AV:N/AC:L/PR:N/UI:N (no authentication and no user interaction required). The practical limiting factor is network reachability of the Gitea web service: instances confined to internal networks or behind a VPN are not directly exploitable by external attackers, whereas any internet-facing instance running a version prior to 1.27.1 (Alpine < 1.27.1-r0) is exposed. The input does not specify a particular Gitea feature, non-default setting, or deployment mode as a precondition, so exploitation should be assumed feasible against default configurations until the vendor advisory GHSA-rcr6-4jqh-j84m confirms otherwise.

Impact

This should be treated as a top-priority, drop-everything patch. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H, base 9.8) indicates remote, low-complexity, unauthenticated exploitation with total impact to confidentiality, integrity, and availability - the maximal-risk profile for a network service. Unlike many high-CVSS findings that stay theoretical, all corroborating signals align upward here: CISA KEV lists it as actively exploited in the wild, and public exploit tooling (a Nuclei template plus a PoC repo) lowers the barrier to mass, automated exploitation. There is no signal-conflict to caveat in this case - KEV, PoC availability, and the CVSS vector all point the same direction, so even a mid-sized operator running a single internet-facing Gitea box should treat this as urgent rather than routine. Note: an EPSS probability score was not provided in the input, so precise exploitation-probability quantification is unavailable, but KEV status already confirms real-world exploitation regardless of EPSS.

Exploit ScenarioDerived

An attacker scans the internet for exposed Gitea instances and sends a crafted request that injects attacker-controlled code into a vulnerable execution or template path, achieving code execution on the server without any credentials or user interaction. Because a public Nuclei template and PoC exist, this can be automated at scale against unpatched hosts. Once code runs, the attacker can exfiltrate hosted source and secrets, tamper with repositories, or pivot deeper into the CI/CD and internal network.

Act Now Prioritize within 24-48h. Why: In CISA KEV with patch available.
Exploited in the wild (CISA KEV) Patch available 82.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Aug 26, 2026

Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbitrary code on the server, with the issue fixed in Gitea 1.27.1 (Alpine package 1.27.1-r0). The vulnerability is confirmed actively exploited (CISA KEV) and publicly available exploit code exists, including a Nuclei detection template and a proof-of-concept repository. With a CVSS 9.8 network/no-auth vector, any internet-exposed unpatched Gitea instance is at immediate, high risk of full compromise.

Earlier versions of this analysis (1)
v1 Aug 11, 2026 - 23:56

Gitea received a security fix in Alpine Linux package version 1.27.1-r0, addressing an unspecified vulnerability in the Gitea self-hosted Git service. The upstream CVE record (CVE-2026-60004) contains minimal public detail - the nature, impact, and exploitability of the underlying flaw are not disclosed in available intelligence sources. Security teams running Gitea on Alpine Linux should treat the package update as a security-relevant change pending further disclosure.

RemediationAI

Upgrade to Gitea 1.27.1 or later immediately; on Alpine Linux install gitea 1.27.1-r0 or newer via the package manager. This is the primary and vendor-confirmed fix (release notes: https://blog.gitea.com/release-of-1.27.1/; advisory: https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m). Until patching completes, reduce exposure by removing the Gitea instance from direct internet reachability - place it behind a VPN or restrict inbound access at the firewall/reverse proxy to trusted source ranges - accepting the trade-off that legitimate remote users and external webhook/CI callers will lose access. Given confirmed active exploitation, also hunt for compromise on any instance that was internet-exposed before patching: review process, webhook, and repository-hook activity, rotate stored tokens/deploy keys/secrets, and inspect for unexpected server-side execution, since a workaround does not remediate an already-breached host.

Affected VersionsENISA

Gitea 1.17 <1.27.1

Affected Packages

go code.gitea.io/gitea no fix
go gitea.dev fix: 1.27.1
euvd gitea fix: 1.27.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Gitea is a lightweight, self-hosted Git service written in Go, widely used as an on-premises alternative to GitHub/GitLab for source hosting, CI triggers, and code collaboration. The root cause is classified as CWE-94 (Improper Control of Generation of Code / code injection), meaning attacker-controlled input is incorporated into a code or template execution path, letting the attacker influence executed instructions rather than just data. The upstream advisory is tracked as GHSA-rcr6-4jqh-j84m and the fix shipped in the 1.27.1 release; the Alpine Linux security tracker records the fixed package as gitea 1.27.1-r0. Because Gitea instances typically hold source code, deploy keys, tokens, and webhook secrets, code execution on the host exposes highly sensitive development assets.

Know when Gitea gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vendor:alpine) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

Network-reachable web service exploitable without authentication or user interaction, and code injection yields full host compromise, so C/I/A are all High.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vendor:alpine).

CVSS VectorVendor: vendor:alpine

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Patch available
Aug 26, 2026 - 22:03 EUVD
CVSS changed
Aug 26, 2026 - 20:23 NVD
9.8 (CRITICAL)
Added to CISA KEV
Aug 25, 2026 - 17:32 CISA

DescriptionCVE.org

Alpine Linux: gitea fixed in 1.27.1-r0

Executive ViewAI

Why It Matters

Gitea self-hosted Git repository service is actively being exploited via a critical remote code execution vulnerability (CVE-2026-60004, CVSS 9.8) that requires no authentication. Any internet-exposed Gitea instance running versions prior to 1.27.1 faces immediate risk of total system compromise, including source code theft, malware injection, and lateral movement into your infrastructure. Organizations must patch all instances urgently or immediately restrict network access.

Business Impact: Severe
Compensating Controls

Apply vendor patch: Gitea 1.27.1. Until fully patched, implement immediate network isolation-restrict all Gitea server access to internal networks only and block inbound internet traffic; disable public repository access and API endpoints if operationally feasible during the remediation window.

Threat Intelligence Overview

Threat Score
5.0/10
Composite threat intelligence
EPSS Score
82.4%
Top 0% exploitable
Prevalence
Medium
popular self-hosted Git service, common but not ubiquitous
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV Yes
Public POC Yes
EPSS 82.4%
Patch available Yes
Active threat Yes
Deciding rule
In CISA KEV with patch available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Immediate
Exploitation· derived
Active
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

201
Low Medium High Critical
KEV: +50
EPSS: +82
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Gitea

View all
CVE-2026-27771 HIGH POC
8.2 Jul 03

Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r

CVE-2022-30781 HIGH POC
7.5 May 16

Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp

CVE-2020-14144 HIGH POC
7.2 Oct 16

The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir

CVE-2024-6886 CRITICAL POC
10.0 Aug 06

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea

CVE-2026-20896 CRITICAL POC
9.8 Jul 03

Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any

CVE-2026-59774 CRITICAL POC
9.8

Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by

CVE-2026-58053 CRITICAL POC
9.4 Jun 28

Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec

CVE-2019-11229 HIGH POC
8.8 Apr 15

models/repo_mirror.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror repo URL settings, leading to rem

CVE-2026-57894 HIGH POC
8.5 Jul 21

Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica

CVE-2026-24791 HIGH POC
8.1 Jun 17

Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran

CVE-2020-13246 HIGH POC
7.5 May 20

An issue was discovered in Gitea through 1.11.5. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita

CVE-2022-0905 HIGH POC
7.1 Mar 10

Missing Authorization in GitHub repository go-gitea/gitea prior to 1.16.4. Rated high severity (CVSS 7.1), this vulnerab

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy