Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://blog.gitea.com/release-of-28.3.0/
- https://github.com/go-gitea/gitea/pull/39690
- https://github.com/go-gitea/gitea/pull/39853
- https://github.com/go-gitea/gitea/releases/tag/v28.3.0
- https://github.com/go-gitea/gitea/security/advisories/GHSA-x5v4-836g-f95x
FAQ
What is CVE-2026-118395?
CVE-2026-118395 is a vulnerability with a CVSS score of 7.5 (HIGH). 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...
How severe is CVE-2026-118395?
CVE-2026-118395 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-118395?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.