PatchSiren cyber security CVE debrief
CVE-2026-52805 gogs CVE debrief
A Server-Side Request Forgery (SSRF) vulnerability exists in Gogs prior to version 0.14.3. An authenticated user can submit a public URL that redirects to a blocked internal endpoint, importing the internal repository's contents into an attacker-controlled repository. This vulnerability allows attackers to potentially access internal repository contents, which could lead to unauthorized data access or exfiltration. Defenders should verify their exposure to this vulnerability, especially if they have user authentication and repository migration functionalities enabled. The fix is provided in version 0.14.3, and defenders should prioritize upgrading to this version or applying mitig
- Vendor
- gogs
- Product
- Unknown
- CVSS
- HIGH 8.7
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-06-24
- Original CVE updated
- 2026-11-03
- Advisory published
- 2026-06-24
- Advisory updated
- 2026-11-03
Who should care
Defenders responsible for Gogs instances, especially those with user authentication and repository migration functionalities, should assess their exposure to this vulnerability and prioritize remediation.
Why it matters
CVE-2026-52805 is a high-severity SSRF vulnerability in Gogs that allows authenticated users to import internal repository contents. Defenders should verify exposure, prioritize remediation, and assess user authentication and repository migration settings.
- Potential unauthorized access to internal repository contents
- Possible data exfiltration through repository imports
- Risk of lateral movement within the network
- Need for verification of user authentication and repository settings
Technical summary
The Gogs application validates only the initially submitted URL hostname during repository migration, but git clone --mirror follows HTTP redirects. This allows an authenticated user to submit a public URL that redirects to a blocked internal endpoint, potentially importing internal repository contents into an attacker-controlled repository. The vulnerability is due to the lack of proper validation of HTTP redirects during the repository migration process. This could lead to unauthorized access to internal repositories and potential data exfiltration. The fix in version 0.14.3 addresses this issue by properly handling HTTP redirects during repository migration.
Defensive priority
Defenders should prioritize verifying exposure to this vulnerability in their Gogs instances, especially if they have not upgraded to version 0.14.3. They should assess their deployment context, focusing on user authentication and repository migration functionalities.
Recommended defensive actions
- Verify Gogs instance version and upgrade to 0.14.3 if necessary
- Assess user authentication and repository migration settings
- Monitor repository imports for suspicious activity
- Review and update incident response plans for potential SSRF exploitation
- Perform a thorough review of Gogs instance configurations and user permissions
- Implement additional monitoring for internal repository access and data exfiltration attempts
- Conduct a security audit to identify and address any existing repository imports from untrusted sources
Evidence notes
The vulnerability is confirmed to exist in Gogs versions prior to 0.14.3. The fix is provided in version 0.14.3. However, the exact scope of affected deployments and potential impact require further verification from official sources.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-52805 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-52805
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-52805 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-52805
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/gogs/gogs/commit/b9a0093e9cd1b2b3c7f42f9feca396dc772c4f1b
-
Source reference
Unverified legacy reference
URL: https://github.com/gogs/gogs/pull/8324
-
Source reference
Unverified legacy reference
URL: https://github.com/gogs/gogs/releases/tag/v0.14.3
-
Source reference
Unverified legacy reference
URL: https://github.com/gogs/gogs/security/advisories/GHSA-g2f5-gjr4-qjvm
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.