Description
SSRF in restore-repo via unsanitized pull_request.yml Head.CloneURL
Published: 2026-08-13
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Gitea exposes a server‑side request forgery flaw when restoring a repository from a pull request that contains an unsanitized pull_request.yml file. The malicious user can set the Head.CloneURL field to any network address, causing the Gitea server to make an outbound HTTP request. This allows an attacker to read or exfiltrate internal network resources, discover services, or potentially target vulnerable services for further compromise. The weakness is a classic CWE‑918 scenario where unsanitized input leads to arbitrary outbound connections.

Affected Systems

The vulnerability impacts the Gitea open source Git server, specifically the restore‑repo functionality that processes pull request metadata. Systems running any unpatched version of Gitea that accepts pull requests are susceptible; the fix is included in the 1.27.0 release.

Risk and Exploitability

The CVSS score is 6.3 and the EPSS score is <1%; the vulnerability is not listed in the KEV catalog, indicating that it has not yet been observed in widespread exploitation. The attack vector is inferred to be via the repository restoration API; an attacker with permission to push a pull request can insert a malicious pull_request.yml file. Because the server initiates the outbound request, successful exploitation may expose internal network resources or enable further attacks against services reachable from the Gitea host.

Generated by OpenCVE AI on August 14, 2026 at 21:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.27.0 or newer, where the SSRF issue is fixed.
  • When possible, configure Gitea to restrict pull request restoration to trusted repositories only, reducing the attack surface.
  • If an upgrade cannot be performed immediately, limit the Gitea server’s outbound network traffic, blocking connections to internal networks and restricting external access to only trusted domains.

Generated by OpenCVE AI on August 14, 2026 at 21:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-xmj7-xj85-hfc3 Gitea: SSRF in restore-repo via unsanitized pull_request.yml Head.CloneURL
History

Fri, 14 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 13 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server

Thu, 13 Aug 2026 17:00:00 +0000

Type Values Removed Values Added
Description SSRF in restore-repo via unsanitized pull_request.yml Head.CloneURL
Title SSRF in restore-repo via unsanitized pull_request.yml Head.CloneURL
Weaknesses CWE-918
References

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-08-14T19:57:53.325Z

Reserved: 2026-06-30T18:57:20.616Z

Link: CVE-2026-58441

cve-icon Vulnrichment

Updated: 2026-08-14T19:57:49.047Z

cve-icon NVD

Status : Deferred

Published: 2026-08-13T17:17:28.123

Modified: 2026-08-26T16:53:48.300

Link: CVE-2026-58441

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T21:30:04Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)