CVE-2026-118395 (GCVE-0-2026-118395)
Vulnerability from cvelistv5 – Published: 2026-11-01 09:48 – Updated: 2026-11-01 09:48
VLAI
EPSS
VEX
Title
Gitea public-only token bypass in repository and organization creation
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.
Severity
No CVSS data available.
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/go-gitea/gitea/security/adviso… | vendor-advisory |
| https://github.com/go-gitea/gitea/pull/39690 | patch |
| https://github.com/go-gitea/gitea/pull/39853 | patch |
| https://blog.gitea.com/release-of-28.3.0/ | release-notes |
| https://github.com/go-gitea/gitea/releases/tag/v28.3.0 | release-notes |
Impacted products
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"packageName": "gitea.dev",
"product": "Gitea",
"vendor": "Gitea",
"versions": [
{
"lessThan": "28.3.0",
"status": "affected",
"version": "0",
"versionType": "semver"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "reporter",
"value": "https://github.com/DshtAnger"
},
{
"lang": "en",
"type": "reporter",
"value": "https://github.com/tao0845"
},
{
"lang": "en",
"type": "reporter",
"value": "https://github.com/d3do-23"
},
{
"lang": "en",
"type": "reporter",
"value": "https://github.com/venkatchalla06"
},
{
"lang": "en",
"type": "reporter",
"value": "https://github.com/shmulc8"
},
{
"lang": "en",
"type": "remediation developer",
"value": "https://github.com/silverwind"
}
],
"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\u0027s owner may create repositories, create private organizations, and generate private repositories from templates. The token still could not read the private repositories it created."
}
],
"providerMetadata": {
"dateUpdated": "2026-11-01T09:48:51.036Z",
"orgId": "88ee5874-cf24-4952-aea0-31affedb7ff2",
"shortName": "Gitea"
},
"references": [
{
"name": "GitHub Security Advisory GHSA-x5v4-836g-f95x",
"tags": [
"vendor-advisory"
],
"url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-x5v4-836g-f95x"
},
{
"name": "Fix: go-gitea/gitea pull request #39690",
"tags": [
"patch"
],
"url": "https://github.com/go-gitea/gitea/pull/39690"
},
{
"name": "Fix backport to release/v28: go-gitea/gitea pull request #39853",
"tags": [
"patch"
],
"url": "https://github.com/go-gitea/gitea/pull/39853"
},
{
"name": "Gitea 28.3.0 release announcement",
"tags": [
"release-notes"
],
"url": "https://blog.gitea.com/release-of-28.3.0/"
},
{
"name": "go-gitea/gitea v28.3.0 release",
"tags": [
"release-notes"
],
"url": "https://github.com/go-gitea/gitea/releases/tag/v28.3.0"
}
],
"title": "Gitea public-only token bypass in repository and organization creation"
}
},
"cveMetadata": {
"assignerOrgId": "88ee5874-cf24-4952-aea0-31affedb7ff2",
"assignerShortName": "Gitea",
"cveId": "CVE-2026-118395",
"datePublished": "2026-11-01T09:48:51.036Z",
"dateReserved": "2026-11-01T08:50:49.235Z",
"dateUpdated": "2026-11-01T09:48:51.036Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-118395",
"date": "2026-11-04",
"epss": "0.00157",
"percentile": "0.04849"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"packageName": "gitea.dev",
"product": "Gitea",
"vendor": "Gitea",
"versions": [
{
"lessThan": "28.3.0",
"status": "affected",
"version": "0",
"versionType": "semver"
}
]
}
],
"source": "88ee5874-cf24-4952-aea0-31affedb7ff2"
}
],
"cveTags": [],
"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\u0027s owner may create repositories, create private organizations, and generate private repositories from templates. The token still could not read the private repositories it created."
}
],
"id": "CVE-2026-118395",
"lastModified": "2026-11-01T10:18:36.467",
"metrics": {},
"published": "2026-11-01T10:18:36.370",
"references": [
{
"source": "88ee5874-cf24-4952-aea0-31affedb7ff2",
"url": "https://blog.gitea.com/release-of-28.3.0/"
},
{
"source": "88ee5874-cf24-4952-aea0-31affedb7ff2",
"url": "https://github.com/go-gitea/gitea/pull/39690"
},
{
"source": "88ee5874-cf24-4952-aea0-31affedb7ff2",
"url": "https://github.com/go-gitea/gitea/pull/39853"
},
{
"source": "88ee5874-cf24-4952-aea0-31affedb7ff2",
"url": "https://github.com/go-gitea/gitea/releases/tag/v28.3.0"
},
{
"source": "88ee5874-cf24-4952-aea0-31affedb7ff2",
"url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-x5v4-836g-f95x"
}
],
"sourceIdentifier": "88ee5874-cf24-4952-aea0-31affedb7ff2",
"vulnStatus": "Deferred"
}
}
}
}
Loading…
Loading…
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
Loading timeline…
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.