Medium
Gitea push-to-create bypass of FORCE_PRIVATE policy
Type: advisorySources: OSV
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
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-89182
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 02:32 UTC · Revision 1
Source evidence
Gitea push-to-create bypass of FORCE_PRIVATE policy
core-osv · Original sourcePublished 6 Oct 2026, 21:36 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:CVE-2026-89182
Complete source record
{
"id": "134268fe56277f654ba428dba4c5f5c9aedfd57fd23abd6040496530d0b31846",
"url": "https://osv.dev/vulnerability/CVE-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:CVE-2026-89182",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-89182",
"aliases": [
"BIT-gitea-2026-89182",
"CVE-2026-89182",
"GHSA-fx95-gwfc-grgc"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/go-gitea/gitea",
"type": "GIT",
"events": [
{
"introduced": "73e0e442988704487b285d59f7494a85229e41e2"
},
{
"fixed": "4ebd5e319b6a9e629bfd7a04292a6fe85b08dee9"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.27.0"
},
{
"fixed": "28.1.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "4ebd5e319b6a9e629bfd7a04292a6fe85b08dee9"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v28.1.0"
}
]
}
}
],
"versions": [
"v28.0.0",
"v29.0.0-dev",
"v1.28.0-dev",
"v1.27.0-dev"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89182.json"
}
}
],
"modified": "2026-10-28T02:30:45.991476734Z",
"provider": "osv",
"references": [
"https://blog.gitea.com/release-of-28.1.0/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89182.json",
"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",
"https://github.com/go-gitea/gitea/pull/39501",
"https://github.com/go-gitea/gitea/pull/39507"
],
"provider_metadata": {
"cwe_ids": [
"CWE-863"
],
"cna_assigner": "Gitea",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89182.json"
}
},
"related_cves": [
{
"value": "CVE-2026-89182",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 514303,
"published_at": "2026-10-06T21:36:01.187+00:00"
}