Skip to main content

Gogs EUVDEUVD-2026-39070

| CVE-2026-52801 HIGH
Improper Input Validation (CWE-20)
2026-06-23 https://github.com/gogs/gogs GHSA-wv27-2vqp-j7g5
8.1
CVSS 3.1 · Vendor: https://github.com/gogs/gogs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate to Gogs with low-privileged account
  2. Delivery
    Create repository via normal migration
  3. Exploit
    Open Repository Settings Mirror form
  4. Install
    Submit local path or internal URL as MirrorAddress
  5. C2
    SaveAddress stores it without validation
  6. Execute
    Mirror sync reads local repo or hits internal service
  7. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

gogs < 0.14.3

Affected Packages

go gogs.io/gogs fix: 0.14.3
euvd gogs fix: 0.14.3

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

Vendor (https://github.com/gogs/gogs) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
vuln.today AI 7.1 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE HIGH

Primary rating from Vendor (https://github.com/gogs/gogs).

CVSS VectorVendor: https://github.com/gogs/gogs

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 57% exploitable
Prevalence
Medium
popular self-hosted Git server, smaller footprint than Gitea/GitLab
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy