Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Gitea: Two SSRF findings (CVE-2026-58314)

0
High
Published: 07/21/2026 (07/21/2026, 21:16:00 UTC)
Source: GCVE Database
Product: code.gitea.io/gitea

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Affected software

Goghsa
code.gitea.io/gitea
Affected versions
<1.27.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 00:44:33 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses