PT-2026-63307 · Gitea+1 · Gitea+1

·

CVE-2026-58441

·

Published

2026-07-21

·

Updated

2026-08-26

CVSS v3.1

6.3

Medium

VectorAV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Gitea versions 1.26.4 and earlier
Description The restore-repo CLI command fails to properly validate the Head.CloneURL field when parsing pull request.yml from a repository dump. The safety check function CheckAndEnsureSafePR() is called with an empty commonCloneBaseURL variable, which effectively disables the validation. This allows a malicious dump file to force the Gitea server to execute a git fetch command against an attacker-specified URL. This can lead to Server-Side Request Forgery (SSRF) against internal services or cloud metadata endpoints, or the disclosure of local git repositories using the file:// protocol.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

DoS

SSRF

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-58441
GHSA-XMJ7-XJ85-HFC3
GO-2026-6084
OPENSUSE-SU-2026:21551-1
SUSE-SU-2026:23216-1
SUSE-SU-2026:23227-1

Affected Products

Gitea
Red Os