llamaCVEVulnerability Intelligence
/
Gitea

CVE-2026-60004

Gitea remote code execution in diffpatch API via Git hooks

An attacker can run arbitrary code on the server by abusing the diffpatch API to install Git hooks.

CISA KEV · explotación activaCrítica · en CISA KEV, EPSS ≥ 10 %Sin parche publicado
Descargar PNG JSON
CVSS 3.1
9.8
Crítica
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Fuente: CNA
ExplotaciónActivaEn CISA KEV desde 25 ago 2026
Exploits públicos132 fuentes · 1 confirmado en GitHub
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición86 dDesde la divulgación, 26 ago 2026, 2:45 p. m.
EPSS ≥ 10 %22 oct 2026Fecha en que la probabilidad de explotación superó el umbral
Decisión SSVCActuar
Parchear de inmediato
Explotación activa (CISA KEV), automatizable e impacto técnico total. No hay versión corregida: aplique mitigaciones.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Modificada
Explotación
CISA KEV
Umbral EPSS
Exploit en GitHub
Remediación
Parche v1.27.1
Plazo KEV
Monitoreo
Detectada
Fuente: Nuclei templates +1
Verificada
27 jul 26
25 ago 26
26 ago 26
28 ago 26
8 sept 26
22 oct 26
1 nov 26
13 nov 26
21 nov 26
27 jul 26
25 ago 26
24 sept 26
23 oct 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche v1.27.1 gitea.dev · -30 d desde divulgación
Explotación CISA KEV Agregada al catálogo de vulnerabilidades explotadas
Divulgación Publicada CVE-2026-60004 divulgada · CVSS 9.8 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación activa
Remediación Plazo KEV Fecha límite de remediación para agencias federales (EE. UU.)
Divulgación Modificada Última actualización del registro
Explotación Umbral EPSS La probabilidad de explotación supera el 10 %
Monitoreo Detectada Ingresó al índice
Explotación Exploit en GitHub basesixtythree/B63-POC-CVE-2026-60004
Monitoreo Fuente: Nuclei templates Registro visto por primera vez en Nuclei templates
Monitoreo Fuente: PoC-in-GitHub Registro visto por primera vez en PoC-in-GitHub
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 12 nov 2026

Gitea's diffpatch API can be abused to install a Git hook, letting an attacker run arbitrary shell commands as the Gitea service account. The attacker can reach it remotely without logging in to an existing account, since open registration lets anyone create a repository and gain the needed write access. Public exploit code is available, and the bug is being exploited in attacks.

Affects Gitea 1.17 up to but not including 1.27.1, where an attacker with write access to a repository can run shell commands through the diffpatch API. Fixed in 1.27.1.

¿Qué significa?The diffpatch API applies a submitted patch twice, which creates an add/add collision. That collision checks out a hooks/post-index-change file in the bare clone and installs a Git hook. The hook lets repository-controlled content run arbitrary shell commands as the Gitea service account.
¿Quién está afectado?Gitea versions from 1.17 up to but not including 1.27.1 are listed as affected. The attacker needs ordinary write access to a repository, which open registration allows anyone to get by registering and creating a repository. Check the running Gitea version (for example on the site's footer or in the admin dashboard) and whether registration is open.
¿Qué hacer?Upgrade Gitea to 1.27.1 or later, the version listed as fixed. The facts give no separate workaround.
Descripción original del registro

Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Gitea version 1.17 up to but not including 1.27.1“Affected versions >=1.17, <1.27.1”
02
Attacker needs write access to a repository, which open registration lets anyone obtain by registering and creating a repository“An attacker with ordinary write access to a repository can execute arbitrary shell commands as the Gitea OS user.”
03
The diffpatch endpoint applies a submitted patch twice, creating an add/add collision that checks out a hooks/post-index-change file in the bare clone“Submitting the same patch twice creates an add/add collision.”
¿Quién debe revisar?Teams self-hosting Gitea 1.17 through 1.27.0, especially where open registration lets anyone create an account and repository.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 10.0 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
gitea.dev< 1.27.1
Gitea≥ 1.17 < 1.27.1
code.gitea.io/gitea≥ 1.17.0
gitea · gitea.dev≥ 1.17.0 < 1.27.1
1.17
1.17.0
v1.26.4
1.27.1
v1.27.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
gogitea.dev
Corregida v1.27.1 -30 d v1.27.3 no afectada
gocode.gitea.io/gitea
Sin parche — — v1.26.4 afectada
Versiones corregidas1.27.1v1.27.1
Explotación

Arsenal público

Exploit-DB
—
0
Metasploit
—
0
Nuclei
http/cves/2026/CVE-2026-60004.yaml
1
PoC en GitHub
0xBlackash/CVE-2026-60004 · EQSTLab/CVE-2026-60004 · HORKimhab/CVE-2026-60004 · HackSpeak/CVE-2026-60004 · Sachinart/CVE-2026-60004-gitea-0day · basesixtythree/B63-POC-CVE-2026-60004 …
12
Ver los 12 repositorios de GitHub (1 con exploit confirmado)
0xBlackash/CVE-2026-60004
EQSTLab/CVE-2026-60004
HORKimhab/CVE-2026-60004
HackSpeak/CVE-2026-60004
Sachinart/CVE-2026-60004-gitea-0day
basesixtythree/B63-POC-CVE-2026-60004exploit
erberkan/CVE-2026-60004-PoC
fevar54/cve-2026-60004
gagaltotal/CVE-2026-60004-poc-gitea
imbas007/CVE-2026-60004-POC
shinthink/CVE-2026-60004
yym8538/CVE-2026-60004

Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.

Referencias
Fabricantehttps://blog.gitea.com/release-of-1.27.1/
Fabricantehttps://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m
Exploithttps://github.com/0xBlackash/CVE-2026-60004
Exploithttps://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-60004.yaml
Exploithttps://github.com/EQSTLab/CVE-2026-60004
Exploithttps://github.com/HORKimhab/CVE-2026-60004
Exploithttps://github.com/HackSpeak/CVE-2026-60004
Exploithttps://github.com/Sachinart/CVE-2026-60004-gitea-0day
Exploithttps://github.com/basesixtythree/B63-POC-CVE-2026-60004
Exploithttps://github.com/erberkan/CVE-2026-60004-PoC
Exploithttps://github.com/fevar54/cve-2026-60004
Exploithttps://github.com/gagaltotal/CVE-2026-60004-poc-gitea
Ver 4 referencias más
Exploithttps://github.com/imbas007/CVE-2026-60004-POC
Exploithttps://github.com/shinthink/CVE-2026-60004
Exploithttps://github.com/yym8538/CVE-2026-60004
Otrahttps://www.runzero.com/blog/gitea/

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.