Gitea push-to-create bypass of FORCE_PRIVATE policy
With `[repository] FORCE_PRIVATE = true`, Gitea creates new repositories as private, but the post-receive hook still applied the `repo.private=false` push option to an empty repository created by push. Any user who can create repositories could make their new repository public in violation of the instance policy. The default configuration is not affected.
- Products
- gitea
- Affected versions
- Not specified
- Fixed versions
- 28.1.0
- CVEs
- CVE-2026-89182
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 12:05 UTC · Revision 1
Source evidence
Gitea push-to-create bypass of FORCE_PRIVATE policy
core-osv · Original sourcePublished 14 Oct 2026, 08:43 UTC
With `[repository] FORCE_PRIVATE = true`, Gitea creates new repositories as private, but the post-receive hook still applied the `repo.private=false` push option to an empty repository created by push. Any user who can create repositories could make their new repository public in violation of the instance policy. The default configuration is not affected.
osv:BIT-gitea-2026-89182
gitea
Fixed versions: 28.1.0
Complete source record
{
"id": "d879cd61fae7360b0793f473ceb351321d66deb767859cca2cd790d60aef44d5",
"url": "https://osv.dev/vulnerability/BIT-gitea-2026-89182",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Gitea push-to-create bypass of FORCE_PRIVATE policy",
"summary": "With `[repository] FORCE_PRIVATE = true`, Gitea creates new repositories as private, but the post-receive hook still applied the `repo.private=false` push option to an empty repository created by push. Any user who can create repositories could make their new repository public in violation of the instance policy. The default configuration is not affected.",
"evidence": "osv:BIT-gitea-2026-89182",
"products": [
{
"name": {
"value": "gitea",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "28.1.0",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "BIT-gitea-2026-89182",
"aliases": [
"BIT-gitea-2026-89182",
"CVE-2026-89182",
"GHSA-fx95-gwfc-grgc"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "1.27.0"
},
{
"fixed": "28.1.0"
}
]
}
],
"package": {
"name": "gitea",
"purl": "pkg:bitnami/gitea",
"ecosystem": "Bitnami"
},
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
}
],
"database_specific": {
"source": "https://github.com/bitnami/vulndb/tree/main/data/gitea/BIT-gitea-2026-89182.json"
}
}
],
"modified": "2026-10-14T11:10:41.748407751Z",
"provider": "osv",
"references": [
"https://blog.gitea.com/release-of-28.1.0/",
"https://github.com/go-gitea/gitea/pull/39501",
"https://github.com/go-gitea/gitea/pull/39507",
"https://github.com/go-gitea/gitea/releases/tag/v28.1.0",
"https://github.com/go-gitea/gitea/security/advisories/GHSA-fx95-gwfc-grgc",
"https://nvd.nist.gov/vuln/detail/CVE-2026-89182"
],
"provider_metadata": {
"cpes": [
"cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*"
],
"severity": "Medium"
}
},
"related_cves": [
{
"value": "CVE-2026-89182",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 316231,
"published_at": "2026-10-14T08:43:04.863+00:00"
}