CVE-2026-86684 Gitea push mirror local path check uses the repository owner
Repository administrators can bypass local path restrictions to modify server-side Git repositories if the owner has import permissions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-86684?
CVE-2026-86684 is a high-severity missing authorization vulnerability in Gitea Gitea, published on 6 Oct 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
The Gitea push mirror API checked whether the repository owner, instead of the requesting user, may use local file system paths. On instances with `[security] IMPORT_LOCAL_PATHS = true`, a repository administrator who is not allowed to import local paths could add a push mirror to a local path on the server when the repository owner has that permission. Gitea then pushed the repository's refs into an existing Git repository at that path with the permissions of the Gitea process.
Weakness: CWE-863
Which versions are affected by CVE-2026-86684?
1 open source package ship an affected version, including gitea. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gitea Bitnami | From 1.18.0 | 28.1.0 |
Products include Gitea Gitea.
How do I fix CVE-2026-86684?
Upgrade gitea to 28.1.0 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2026-86684 being exploited?
There is no known exploitation of CVE-2026-86684 in the wild and no public exploit code.
Other vulnerabilities in Gitea Gitea
Sources
Also known as BIT-gitea-2026-86684, GHSA-7v5j-mph8-9w6g, MINI-fprp-48cr-p3jm, MINI-p8q2-2ghx-xj5p.