Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to Gogs with low-privileged account
-
DeliveryCreate repository via normal migration
-
ExploitOpen Repository Settings Mirror form
-
InstallSubmit local path or internal URL as MirrorAddress
-
C2SaveAddress stores it without validation
-
ExecuteMirror sync reads local repo or hits internal service
-
ImpactExfiltrate code or infer internal topology
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Requires an authenticated Gogs account that can create or own at least one repository and access Repository Settings > Mirror Settings; the target Gogs instance must be running a version below 0.14.3 and must have local filesystem repositories or internal network services reachable from the Gogs process for the impact to be meaningful. Exploitation is limited where IMPORT_LOCAL_PATHS is already disabled (local-file read becomes infeasible, leaving only blind SSRF) and where user registration is closed or restricted to trusted operators, since PR:L means an attacker still needs valid credentials. |
| Impact | CVSS 3.1 base score 8.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H) is plausible: network-reachable web UI, low complexity, only a low-privileged authenticated user with a repository is needed, no user interaction. Confidentiality impact is high because the attacker can read arbitrary repositories accessible to the git OS user, and availability impact reflects blind SSRF noise plus mirror-job side effects; integrity is N because content is fetched, not written upstream. EPSS and KEV signals were not provided in the input, and there is no evidence of active exploitation, so the realistic priority is moderate-to-high for any internet-exposed or multi-tenant Gogs instance and lower for single-tenant trusted-user deployments. Patch availability and a clear PR diff make this a straightforward priority for any organization running Gogs. |
| Exploit ScenarioDerived | An attacker with any authenticated Gogs account creates a normal repository migration from a benign remote URL, then opens Repository Settings and submits a Mirror Address of file:///srv/gogs/repositories/<victim>/<repo>.git or an internal URL such as http://169.254.169.254/latest/meta-data/. On the next mirror sync, Gogs reads the local repository contents or issues the internal request, exposing other tenants' code or probing internal services blindly via timing and error responses. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 23, 2026
Local repository import and blind SSRF in Gogs versions prior to 0.14.3 allows authenticated users to bypass clone-address validation via the Mirror Settings feature. The SaveAddress path in repository Mirror Settings omitted the validation applied to New Migration, letting any authenticated user point a mirror at a local filesystem path or internal address. No public exploit identified at time of analysis beyond the reporter's PoC; not listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade Gogs to 0.14.3 or later (https://github.com/gogs/gogs/releases/tag/v0.14.3), which routes Mirror Settings through the same ParseRemoteAddr validator used by New Migration (PR https://github.com/gogs/gogs/pull/8225, commit 11e19f28b5c82466fd1689c94344ef4313ee986c). If immediate upgrade is not possible, set IMPORT_LOCAL_PATHS=false in app.ini and ensure no user account has CanImportLocal privileges, restrict who can create repositories and edit mirror settings to trusted users only, place Gogs behind a network egress policy that blocks RFC1918 and link-local addresses to limit blind SSRF, and consider temporarily disabling the mirror feature in the UI by reverse-proxy rules on /<owner>/<repo>/settings if mirroring is not required; the trade-off is loss of legitimate mirroring functionality and tighter user-management overhead.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Gogs is a self-hosted Go-based Git service (CPE pkg:go/gogs.io_gogs). The vulnerable code path is in internal/route/repo/setting.go where SettingsPost called c.Repo.Mirror.SaveAddress(f.MirrorAddress) directly, while the New Migration path went through MigrateRepo.ParseRemoteAddr which enforced CanImportLocal() checks and blocked-local-address validation. Root cause is CWE-20 (Improper Input Validation): a duplicated input sink that did not reuse the central ParseRemoteAddr validator, so URL/path/permission/blocked-address checks were skipped on mirror updates.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Network-reachable web UI, low-priv authenticated user, no UI; high confidentiality from local repo read, low availability from SSRF/mirror noise, no integrity impact.
Primary rating from Vendor (https://github.com/gogs/gogs).
CVSS VectorVendor: https://github.com/gogs/gogs
DescriptionCVE.org
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. <img width="1200" height="755" alt="image" src="https://github.com/user-attachments/assets/a6c2f307-715e-4451-bbc1-7bd934d56f96" />
Here is the function implementation of the Mirror Settings without any validation. <img width="1200" height="477" alt="image" src="https://github.com/user-attachments/assets/a11c41b8-1d08-499c-bce6-ab40844211d7" />
PoC
The New Migration feature correctly blocked my attempt to import a local repository. <img width="1200" height="1008" alt="image" src="https://github.com/user-attachments/assets/dfc5aa3f-1cc4-427d-b7fe-274363c83c4e" />
But if I create a normal migration with a valid repository. <img width="1200" height="1006" alt="image" src="https://github.com/user-attachments/assets/c96b356e-8ca9-4e79-a69b-ff14593c0cac" />
Then, I could use the Mirror Settings feature under the Repository Settings sync a local repository. <img width="1200" height="476" alt="image" src="https://github.com/user-attachments/assets/9105475c-ae68-4d93-96d5-a3ec356deba7" />
Here is the result after the sync. <img width="1200" height="533" alt="image" src="https://github.com/user-attachments/assets/1df76642-3e55-4493-a422-f7f0619b463d" />
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.
Executive ViewAI
Gogs versions before 0.14.3 contain a HIGH severity vulnerability (CVSS 8.1) allowing authenticated users to bypass repository clone validation and access local filesystems and internal network resources through the Mirror Settings feature. Publicly available exploit code exists. This creates risk of unauthorized data access and lateral movement for organizations with multi-user Gogs deployments.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Same weakness CWE-20 – Improper Input Validation
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-39070
GHSA-wv27-2vqp-j7g5
NVD
CVE.org
EPSS
Exploit-DB