{"id":"CVE-2026-118395","state":"PUBLISHED","title":"Gitea public-only token bypass in repository and organization creation","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.","publishedAt":"2026-11-01T09:48:51.036Z","updatedAt":"2026-11-06T15:19:35.690Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CISA-ADP"},"assigner":"Gitea","products":["Gitea Gitea"],"affected":[{"vendor":"Gitea","product":"Gitea","packageName":"gitea.dev","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"28.3.0","versionType":"semver"}]}],"references":["https://github.com/go-gitea/gitea/security/advisories/GHSA-x5v4-836g-f95x","https://github.com/go-gitea/gitea/pull/39690","https://github.com/go-gitea/gitea/pull/39853","https://blog.gitea.com/release-of-28.3.0/","https://github.com/go-gitea/gitea/releases/tag/v28.3.0"],"weaknesses":["CWE-284"],"ingestedAt":"2026-11-06T15:30:09.766Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/118xxx/CVE-2026-118395.json","commit":"2130c32270a17c813a03779ec2171675116ff3bf","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-118395","state":"PUBLISHED","datePublished":"2026-11-01T09:48:51.036Z","dateUpdated":"2026-11-06T15:19:35.690Z","assignerShortName":"Gitea","assignerOrgId":"88ee5874-cf24-4952-aea0-31affedb7ff2","dateReserved":"2026-11-01T08:50:49.235Z"},"containers":{"cna":{"title":"Gitea public-only token bypass in repository and organization creation","descriptions":[{"lang":"en","value":"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":[{"vendor":"Gitea","product":"Gitea","packageName":"gitea.dev","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"28.3.0","versionType":"semver"}]}],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-x5v4-836g-f95x","name":"GitHub Security Advisory GHSA-x5v4-836g-f95x","tags":["vendor-advisory"]},{"url":"https://github.com/go-gitea/gitea/pull/39690","name":"Fix: go-gitea/gitea pull request #39690","tags":["patch"]},{"url":"https://github.com/go-gitea/gitea/pull/39853","name":"Fix backport to release/v28: go-gitea/gitea pull request #39853","tags":["patch"]},{"url":"https://blog.gitea.com/release-of-28.3.0/","name":"Gitea 28.3.0 release announcement","tags":["release-notes"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v28.3.0","name":"go-gitea/gitea v28.3.0 release","tags":["release-notes"]}],"providerMetadata":{"shortName":"Gitea","orgId":"88ee5874-cf24-4952-aea0-31affedb7ff2","dateUpdated":"2026-11-01T09:48:51.036Z"},"credits":[{"lang":"en","value":"https://github.com/DshtAnger","type":"reporter"},{"lang":"en","value":"https://github.com/tao0845","type":"reporter"},{"lang":"en","value":"https://github.com/d3do-23","type":"reporter"},{"lang":"en","value":"https://github.com/venkatchalla06","type":"reporter"},{"lang":"en","value":"https://github.com/shmulc8","type":"reporter"},{"lang":"en","value":"https://github.com/silverwind","type":"remediation developer"}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-11-06T15:18:27.293866Z","id":"CVE-2026-118395","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-284","type":"CWE","lang":"en","description":"CWE-284 Improper Access Control"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-06T15:19:35.690Z"}}]}}}