CVE-2026-89182: Gitea push-to-create bypass of FORCE_PRIVATE policy

Published Oct 6, 2026
·
Updated

With [repository] FORCEPRIVATE = 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.

Affected Software

1 affected component
Gitea Gitea

Event History

Oct 6, 2026
CVE Published
via MITRE·09:36 PM
Data Sourced
via MITRE·09:36 PM
DescriptionWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

A user must be able to create repositories and create a new empty repository through a push. They can then use the repo.private=false push option to make that repository public.

2

Are default Gitea installations affected?

No. The default configuration is not affected; the issue requires [repository] FORCE_PRIVATE = true.

3

How can I tell whether my instance may be affected?

Check whether [repository] FORCE_PRIVATE is enabled and whether users who can create repositories can push to create new empty repositories. Repositories created in that way may have been made public despite the private-only policy.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203