CVE-2026-118395 json
Gitea public-only token bypass in repository and organization creation
published 8d ago modified 3d ago also EUVD-2026-114803
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 20%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Gitea Gitea 28.3.0
- github.com/go-gitea/gitea#39690 pull request
- github.com/go-gitea/gitea#39853 pull request
- github.com/go-gitea/gitea/releases/tag/v28.3.0 release
Is CVE-2026-118395 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 3d ago
Exploit prediction
0.28% chance of exploitation in the next 30 days, higher than 20% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected products
- Gitea Gitea
Classification
- Weakness
-
- CWE-284 Improper Access Control
References
-
github.com
/go-gitea/gitea/pull/39690
patch
-
github.com
/go-gitea/gitea/pull/39853
patch
-
github.com
/go-gitea/gitea/security/advisories/GHSA-x5v4-836g-f95x
vendor-advisory
-
blog.gitea.com
/release-of-28.3.0/
release-notes
-
github.com
/go-gitea/gitea/releases/tag/v28.3.0
release-notes
Sources
- CVE List CVE-2026-118395
- NVD CVE-2026-118395
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.