Server-Side Request Forgery (SSRF) in Gitea - CVE-2026-58442

 

Server-Side Request Forgery (SSRF) in Gitea - CVE-2026-58442

Published: July 14, 2026


Vulnerability identifier: #VU137415
CSH Severity: Low
CVSS v4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-58442
CWE-ID: CWE-918
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to disclose sensitive information from internal-only Git services via server-side request forgery.

The vulnerability exists due to improper access control in services/migrations/migrate.go when validating repository migration destinations that resolve to multiple IP addresses. A remote user can use an attacker-controlled DNS hostname that resolves to both allowed and blocked addresses to disclose sensitive information from internal-only Git services via server-side request forgery.

The issue arises because the validation accepts a hostname if any resolved IP is allowed, while the later git clone operation performs DNS resolution again and can connect to a blocked internal address.


Affected software

Gitea

How to mitigate CVE-2026-58442

Install security update from vendor's website.

Gitea - update to 1.27.0

External References

Related Security Bulletins