CVE-2026-58441: CWE-918 in Gitea Gitea Open Source Git Server
SSRF in restore-repo via unsanitized pull_request.yml Head.CloneURL
AI Analysis
Technical Summary
Gitea's restore-repo CLI command improperly validates the pull_request.yml Head.CloneURL field, disabling the intended safety check by passing an empty base URL. This flaw allows an attacker to supply arbitrary URLs in git fetch commands, enabling Server-Side Request Forgery (SSRF) attacks targeting internal services or local git repositories accessible via file:// URLs. The vulnerability affects all versions prior to 1.27.0. No remote code execution through git transport helpers has been observed, and no public exploits are currently known. The vulnerability is tracked as CVE-2026-58441 and has a CVSS 3.1 score of 6.3 (medium severity).
Potential Impact
Successful exploitation can lead to SSRF attacks, potentially allowing attackers to access internal network services or local git repositories via crafted URLs. There is no indication of remote code execution or system compromise beyond information disclosure through SSRF. The vulnerability requires local access (low attack vector) and user interaction, but it can result in high confidentiality impact due to unauthorized data exposure.
Mitigation Recommendations
A patch is available in Gitea version 1.27.0 and later. Users should upgrade to version 1.27.0 or newer to remediate this vulnerability. No additional mitigations are specified by the vendor advisory. Since this is not a cloud service, remediation depends on applying the official fix.
CVE-2026-58441: CWE-918 in Gitea Gitea Open Source Git Server
Description
SSRF in restore-repo via unsanitized pull_request.yml Head.CloneURL
CVSS v3.1
Score 6.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Gitea's restore-repo CLI command improperly validates the pull_request.yml Head.CloneURL field, disabling the intended safety check by passing an empty base URL. This flaw allows an attacker to supply arbitrary URLs in git fetch commands, enabling Server-Side Request Forgery (SSRF) attacks targeting internal services or local git repositories accessible via file:// URLs. The vulnerability affects all versions prior to 1.27.0. No remote code execution through git transport helpers has been observed, and no public exploits are currently known. The vulnerability is tracked as CVE-2026-58441 and has a CVSS 3.1 score of 6.3 (medium severity).
Potential Impact
Successful exploitation can lead to SSRF attacks, potentially allowing attackers to access internal network services or local git repositories via crafted URLs. There is no indication of remote code execution or system compromise beyond information disclosure through SSRF. The vulnerability requires local access (low attack vector) and user interaction, but it can result in high confidentiality impact due to unauthorized data exposure.
Mitigation Recommendations
A patch is available in Gitea version 1.27.0 and later. Users should upgrade to version 1.27.0 or newer to remediate this vulnerability. No additional mitigations are specified by the vendor advisory. Since this is not a cloud service, remediation depends on applying the official fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-xmj7-xj85-hfc3
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58441"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a600ab89c2644c7f8fe2614
Added to database: 07/22/2026, 00:11:36 UTC
Last enriched: 08/14/2026, 12:59:54 UTC
Last updated: 09/14/2026, 10:01:32 UTC
Views: 68
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.