CVE-2026-118395
7.5high
Gitea public-only token bypass in repository and organization creation
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.40% (higher than 36% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Gitea
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gitea.dev | before 28.3.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-118395 changed 2026-11-06 | CVE Terms of Use |
| NVD | CVE-2026-118395 changed 2026-11-06 | Public domain |