---
id: CVE-2026-89182
title: >-
  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
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
  repositorie…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'
cwe:
  - CWE-863
vendor: gitea
product: gitea
affected:
  - 'gitea >= 1.27.0, < 28.1.0'
patched:
  - gitea 28.1.0
published: '2026-10-06'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T18:03:37.053'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-89182'
references:
  - url: 'https://blog.gitea.com/release-of-28.1.0/'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/39501'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/39507'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/releases/tag/v28.1.0'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/security/advisories/GHSA-fx95-gwfc-grgc'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/security/advisories/GHSA-fx95-gwfc-grgc'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-89182.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-89182'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-89182'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
epss: 0.00196
epssPercentile: 0.09259
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-07T11:33:52.355355Z'
scores:
  nvd: 5.4
  vendor: 4.3
ingestedAt: '2026-10-06T22:23:15.972Z'
---

## Overview

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.

## Affected

- `gitea >= 1.27.0, < 28.1.0`

## Remediation

Upgrade past the affected range:

- `gitea 28.1.0`

## Vendor advisories

- **Red Hat VEX** · updated 2026-10-07 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-89182.json)
