CVE-2026-86684: Gitea push mirror local path check uses the repository owner

Published Oct 6, 2026
·
Updated

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] IMPORTLOCALPATHS = 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.

Affected Software

1 affected component
Gitea Gitea

Event History

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

Frequently Asked Questions

1

Which deployments are exposed?

Instances are affected only when [security] IMPORT_LOCAL_PATHS is enabled. Exploitation also requires a repository owner that has permission to use local file system paths and a repository administrator who does not have that permission.

2

What access does an attacker need?

The attacker needs repository administrator access to add a push mirror. They can then configure a mirror targeting an existing Git repository at a local server path when the repository owner is permitted to use local paths.

3

What is the impact of a successful exploit?

Gitea pushes the repository's refs into the target Git repository on the server. That push is performed with the permissions of the Gitea process.

4

What mitigation is available if a fix cannot be applied immediately?

Disable [security] IMPORT_LOCAL_PATHS to prevent use of local file system paths for this scenario.

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