A AegiFlow
HIGHCVSS 8.1EPSS 0.6%

CVE-2026-52801

Gogs has the ability to import local repositories via Mirror Settings

Published
2026-06-23
Modified
2026-07-21
EPSS percentile
44%
Aliases
GHSA-wv27-2vqp-j7g5
Sources
github-advisory

Summary

### Summary The Gogs Mirror Settings functionality provide an alternative way from the well protected New Migration functionality for any authenticated users to import local repositories. This issue stems from a lack of validation of SaveAddress function. ### Details Here is the function implementation of the secure New Migration functionality. Here is the function implementation of the Mirror Settings without any validation. ### PoC The New Migration feature correctly blocked my attempt to import a local repository. But if I create a normal migration with a valid repository. Then, I could use the Mirror Settings feature under the Repository Settings sync a local repository. Here is the result after the sync. ### Impact Users can import local repositories from the server's filesystem, which allows accessing any repository the git user has access to. There is also a potential issue of blind SSRF.

Affected packages

EcosystemPackageAffected versionsFixed versions
Gogogs.io/gogs0.14.3

Remediation: Upgrade to 0.14.3 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.