PatchSiren cyber security CVE debrief
CVE-2026-118395 Gitea CVE debrief
A holder of a public-only personal access token with the needed write scopes in Gitea 1.27.3 could create private repositories in organizations where the token's owner may create repositories, create private organizations, and generate private repositories from templates, despite the token being restricted to public resources. This vulnerability allows unauthorized creation of private repositories, organizations, and generation of private repositories from templates, potentially leading to exposure of sensitive information. Gitea administrators and users who utilize personal access tokens with restricted scopes should assess their exposure to this vulnerability and verify their G.
- Vendor
- Gitea
- Product
- Unknown
- CVSS
- Unknown
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-01
- Original CVE updated
- 2026-11-01
- Advisory published
- 2026-11-01
- Advisory updated
- 2026-11-01
Who should care
Gitea administrators and users who utilize personal access tokens with restricted scopes should assess their exposure to this vulnerability and verify their deployments. Additionally, security teams and platform operators who manage Gitea instances should review their configurations and ensure that personal access tokens are properly restricted to prevent unauthorized actions.
Why it matters
Defenders should care about CVE-2026-118395 because it allows holders of public-only personal access tokens to create private repositories, organizations, and generate private repositories from templates in Gitea 1.27.3. This could lead to unauthorized repository creation and exposure of sensitive information. Gitea administrators and users who utilize personal access tokens with restricted scopes should assess their exposure and verify their deployments.
- Potential unauthorized creation of private repositories in Gitea organizations
- Possible creation of private organizations using restricted personal access tokens
- Potential generation of private repositories from templates with restricted tokens
Technical summary
Gitea 1.27.3 has a vulnerability where personal access tokens restricted to public resources (`public-only`) can still create private repositories in certain scenarios. The tokens can create private repositories in organizations where the token's owner has write access, create private organizations, and generate private repositories from templates through specific API endpoints. This vulnerability is due to the incomplete restriction of personal access tokens with `public-only` access, allowing them to interact with private resources in unintended ways.
Defensive priority
Defenders should prioritize verifying Gitea deployments using personal access tokens and assess exposure to unauthorized repository creation.
Recommended defensive actions
- Verify Gitea deployments using personal access tokens and assess exposure to unauthorized repository creation
- Review and restrict write scopes for personal access tokens
- Monitor for suspicious repository creation activity in Gitea organizations
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
- Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
Evidence notes
The CVE record and NVD entry provide details on the vulnerability in Gitea 1.27.3, including the restricted functionality of personal access tokens and the specific API endpoints affected. The vulnerability is confirmed in Gitea 1.27.3 and may affect other versions. The CVE Program and NVD entries provide source-provided CVE metadata and vulnerability assessment. However, the exact scope and impact of the vulnerability are limited by the information available in the CVE record and NVD entry.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-118395 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-118395
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-118395 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-118395
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://blog.gitea.com/release-of-28.3.0/
88ee5874-cf24-4952-aea0-31affedb7ff2
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/pull/39690
88ee5874-cf24-4952-aea0-31affedb7ff2
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/pull/39853
88ee5874-cf24-4952-aea0-31affedb7ff2
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/releases/tag/v28.3.0
88ee5874-cf24-4952-aea0-31affedb7ff2
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/security/advisories/GHSA-x5v4-836g-f95x
88ee5874-cf24-4952-aea0-31affedb7ff2
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.