CVE-2026-123638
Gitea protected file pattern bypass via quoted names
Users with write access can alter protected files, such as CI workflows, using special characters in file names.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
Fuente: CISA-ADP
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-123638 divulgada · CVSS 8.3 (CISA-ADP) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Gitea's branch protection feature, which uses "Protected file patterns" to guard certain files, can be bypassed when file names contain double quotes, backslashes, or control characters. A user with write access could then add or change protected files, including workflow files that run on the repository's runners, or rename a protected file to move it out of the pattern.
Affects Gitea versions before 28.4.0 where a branch protection rule uses Protected file patterns. The fix is in Gitea 28.4.0.
Descripción original del registro (Gitea)
The "Protected file patterns" setting of a branch protection rule was checked against file names as git prints them, and git quotes names that contain a double quote, a backslash or a control character. Such names never matched a pattern, so a user with write access could add or change files under a protected pattern by direct push or through a pull request merge, and could move a protected file out of the pattern's reach by renaming it. Where the patterns protect workflow files, this allowed adding a workflow that then ran on the repository's runners. Changed files are now listed unquoted, and a rename reports both the old and the new path.
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 |
Sin parche | — | — | v1.27.3 afectada |
28.4.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/go-gitea/gitea/security/advisories/GHSA-w87g-xmrp-86v2https://blog.gitea.com/release-of-28.4.0/https://github.com/go-gitea/gitea/pull/40362https://github.com/go-gitea/gitea/releases/tag/v28.4.0Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
