CVE-2026-89182

Description

A flaw was found in Gitea. When an instance is configured to enforce private repositories, the post-receive hook fails to block the push option that sets a repository as public during initial creation by push. An authenticated user permitted to create repositories can exploit this issue to bypass the instance privacy policy and create publicly accessible repositories, potentially exposing sensitive project data.

Statement

This vulnerability is rated as Moderate severity because it requires valid user authentication with repository creation privileges and only affects non-default deployments configured to enforce private repositories. Under standard settings, the privacy enforcement policy is not enabled, leaving default installations unaffected. While an authenticated user can bypass instance-level visibility restrictions during push-to-create actions, the exploit cannot grant unauthorized access to existing private projects or escalate administrative privileges.

Understanding the Weakness (CWE)

Other

Technical Impact: Varies by Context

Allowing external control of system settings can disrupt service or cause an application to behave in unexpected, and potentially malicious ways.

Frequently Asked Questions

Want to get errata notifications? Sign up here.