Skip to content

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

MediumCVSS 5.4 EPSS 0.30%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
Gitea >= 1.27.0, < 28.1.0; >= 1.27.0, <= 28.0.0 28.1.0 Fixed

Affected products

ProductAffected versionsFixed in
Gitea >= 1.27.0, <= 28.0.0 No fix listed
Gitea >= 1.27.0, < 28.1.0 28.1.0

References