CVE-2026-118395
Gitea access control bypass in repository and org creation
An attacker with a public-only token can create private repositories, organizations, and template-based repos.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Fuente: CISA-ADP
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-118395 divulgada · CVSS 7.5 (CISA-ADP) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| 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, the self-hosted Git service, is affected. A personal access token limited to public resources could still create private repositories, create private organizations, and generate private repositories from templates through several API endpoints, bypassing a fix in a recent release.
Affects Gitea before 28.3.0 when a personal access token has the public-only restriction plus write:repository and write:organization scopes, and the account can create repositories in the target organization. Fixed in 28.3.0.
Descripción original del registro (Gitea)
Gitea 1.27.3 stopped personal access tokens restricted to public resources (`public-only`) from creating repositories through `POST /api/v1/user/repos` and `POST /api/v1/repos/migrate`, but `POST /api/v1/org/{org}/repos`, `POST /api/v1/orgs/{org}/repos`, `POST /api/v1/orgs` and `POST /api/v1/repos/{owner}/{repo}/generate` still accepted such tokens. A holder of a public-only token with the needed write scopes could create private repositories in organizations where the token's owner may create repositories, create private organizations, and generate private repositories from templates. The token still could not read the private repositories it created.
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.3.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-x5v4-836g-f95xhttps://blog.gitea.com/release-of-28.3.0/https://github.com/go-gitea/gitea/pull/39690https://github.com/go-gitea/gitea/pull/39853https://github.com/go-gitea/gitea/releases/tag/v28.3.0Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
