CVE-2026-58441

SSRF in restore-repo via unsanitized pull_request.yml Head.CloneURL

Published Aug 13, 2026 CVSS 3.1 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
SSRF in restore-repo via unsanitized pull_request.yml Head.CloneURL

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
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'}

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server
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
Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Aug 14, 2026, 7:57 PM
Reserved
Jun 30, 2026, 6:57 PM
Status
Deferred
Published
Aug 13, 2026, 5:17 PM
Modified
Aug 26, 2026, 4:53 PM