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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| 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 |
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.
Descripción original del registro
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde 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 |
1.27.1v1.27.1Arsenal público
Ver los 12 repositorios de GitHub (1 con exploit confirmado)
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.
https://blog.gitea.com/release-of-1.27.1/https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84mhttps://github.com/0xBlackash/CVE-2026-60004https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-60004.yamlhttps://github.com/EQSTLab/CVE-2026-60004https://github.com/HORKimhab/CVE-2026-60004https://github.com/HackSpeak/CVE-2026-60004https://github.com/Sachinart/CVE-2026-60004-gitea-0dayhttps://github.com/basesixtythree/B63-POC-CVE-2026-60004https://github.com/erberkan/CVE-2026-60004-PoChttps://github.com/fevar54/cve-2026-60004https://github.com/gagaltotal/CVE-2026-60004-poc-giteaVer 4 referencias más
https://github.com/imbas007/CVE-2026-60004-POChttps://github.com/shinthink/CVE-2026-60004https://github.com/yym8538/CVE-2026-60004https://www.runzero.com/blog/gitea/Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
