Description
SSRF in restore-repo via unsanitized pull_request.yml Head.CloneURL
Published: 2026-08-13
Score: n/a
EPSS: n/a
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

No CVSS or EPSS score is published, but the absence of a KEV listing indicates 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 13, 2026 at 19:00 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 13, 2026 at 19:00 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

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-13T16:44:54.967Z

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

Link: CVE-2026-58441

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-58441

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T19:15:03Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)