Gitea: Two SSRF findings (CVE-2026-58314)
Gitea versions prior to 1.27.0 contain two server-side request forgery (SSRF) vulnerabilities. The first involves an IP address classifier that fails to block certain address families, including CGNAT (100.64.0.0/10), allowing authenticated users to create webhooks or perform repository migrations that access internal network resources. The second vulnerability allows unauthenticated attackers to trigger server-side HTTP GET requests to arbitrary internal IPs via the OpenID sign-in form, which lacks IP filtering or authentication. Both issues allow internal network scanning and data retrieval from internal hosts. The vulnerabilities were confirmed on Gitea 1.26.2 with default configuration.
AI Analysis
Technical Summary
Gitea's outbound HTTP request filtering for webhooks and repository migration relies on an IP classifier that incorrectly permits certain address families, notably CGNAT (100.64.0.0/10), which is widely used in modern network environments such as Tailscale and AWS VPCs. This allows any authenticated user to create webhooks targeting internal CGNAT addresses and retrieve up to 1 MB of HTTP response data, which is logged and displayed to the webhook owner. Separately, the OpenID sign-in endpoint fetches user-supplied provider URLs without IP filtering or authentication, enabling unauthenticated SSRF attacks to arbitrary internal IPs. The root cause is the IP classifier's reliance on Go's net.IP methods that do not recognize all private or special-use address ranges. These vulnerabilities affect Gitea versions before 1.27.0 and were demonstrated on version 1.26.2.
Potential Impact
An attacker with a logged-in account can exploit the webhook and repository migration SSRF to access internal network resources within CGNAT ranges, potentially exposing sensitive internal services. The OpenID SSRF vulnerability allows unauthenticated attackers to make arbitrary HTTP GET requests from the Gitea server to internal IP addresses, which can lead to information disclosure or internal network reconnaissance. The vulnerabilities do not directly allow code execution or denial of service but can facilitate further attacks by revealing internal infrastructure details.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to Gitea to trusted users and networks, disable OpenID sign-in if not required, and avoid running Gitea in network environments where internal CGNAT address spaces are accessible. Monitor vendor communications for official patches or updates addressing these SSRF issues.
Gitea: Two SSRF findings (CVE-2026-58314)
Description
Gitea versions prior to 1.27.0 contain two server-side request forgery (SSRF) vulnerabilities. The first involves an IP address classifier that fails to block certain address families, including CGNAT (100.64.0.0/10), allowing authenticated users to create webhooks or perform repository migrations that access internal network resources. The second vulnerability allows unauthenticated attackers to trigger server-side HTTP GET requests to arbitrary internal IPs via the OpenID sign-in form, which lacks IP filtering or authentication. Both issues allow internal network scanning and data retrieval from internal hosts. The vulnerabilities were confirmed on Gitea 1.26.2 with default configuration.
CVSS v3.1
Score 7.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Gitea's outbound HTTP request filtering for webhooks and repository migration relies on an IP classifier that incorrectly permits certain address families, notably CGNAT (100.64.0.0/10), which is widely used in modern network environments such as Tailscale and AWS VPCs. This allows any authenticated user to create webhooks targeting internal CGNAT addresses and retrieve up to 1 MB of HTTP response data, which is logged and displayed to the webhook owner. Separately, the OpenID sign-in endpoint fetches user-supplied provider URLs without IP filtering or authentication, enabling unauthenticated SSRF attacks to arbitrary internal IPs. The root cause is the IP classifier's reliance on Go's net.IP methods that do not recognize all private or special-use address ranges. These vulnerabilities affect Gitea versions before 1.27.0 and were demonstrated on version 1.26.2.
Potential Impact
An attacker with a logged-in account can exploit the webhook and repository migration SSRF to access internal network resources within CGNAT ranges, potentially exposing sensitive internal services. The OpenID SSRF vulnerability allows unauthenticated attackers to make arbitrary HTTP GET requests from the Gitea server to internal IP addresses, which can lead to information disclosure or internal network reconnaissance. The vulnerabilities do not directly allow code execution or denial of service but can facilitate further attacks by revealing internal infrastructure details.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to Gitea to trusted users and networks, disable OpenID sign-in if not required, and avoid running Gitea in network environments where internal CGNAT address spaces are accessible. Monitor vendor communications for official patches or updates addressing these SSRF issues.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-2fcr-jfvc-vgg2
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58314"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a600ab09c2644c7f8fe1a3b
Added to database: 07/22/2026, 00:11:28 UTC
Last enriched: 07/22/2026, 00:44:33 UTC
Last updated: 07/31/2026, 12:28:12 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.