Vulnerability Description
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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Gitea | Gitea | >= 1.27.0, < 28.1.0 |
Related Weaknesses (CWE)
References
- https://blog.gitea.com/release-of-28.1.0/Release Notes
- https://github.com/go-gitea/gitea/pull/39501PatchIssue Tracking
- https://github.com/go-gitea/gitea/pull/39507PatchIssue Tracking
- https://github.com/go-gitea/gitea/releases/tag/v28.1.0Release Notes
- https://github.com/go-gitea/gitea/security/advisories/GHSA-fx95-gwfc-grgcMitigationVendor Advisory
- https://github.com/go-gitea/gitea/security/advisories/GHSA-fx95-gwfc-grgcMitigationVendor Advisory
FAQ
What is CVE-2026-89182?
CVE-2026-89182 is a vulnerability with a CVSS score of 5.4 (MEDIUM). 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...
How severe is CVE-2026-89182?
CVE-2026-89182 has been rated MEDIUM with a CVSS base score of 5.4/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-89182?
Check the references section above for vendor advisories and patch information. Affected products include: Gitea Gitea.