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.
Fix
Patch, vendor advisory and mitigation references on NVD 3
- https://github.com/go-gitea/gitea/pull/39501 Patch, Issue Tracking
- https://github.com/go-gitea/gitea/pull/39507 Patch, Issue Tracking
- https://github.com/go-gitea/gitea/security/advisories/GHSA-7v5j-mph8-9w6g Exploit, Mitigation, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 7.1 · giteaNVD modified 2026-10-13 18:05
Affected (CPE criteria) 1
cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*
References 5
- https://blog.gitea.com/release-of-28.1.0/ Release Notes
- https://github.com/go-gitea/gitea/pull/39501 Patch, Issue Tracking
- https://github.com/go-gitea/gitea/pull/39507 Patch, Issue Tracking
- https://github.com/go-gitea/gitea/releases/tag/v28.1.0 Release Notes
- https://github.com/go-gitea/gitea/security/advisories/GHSA-7v5j-mph8-9w6g Exploit, Mitigation, Vendor Advisory