Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed Gitea Mirror instance
-
DeliveryPOST crafted url to test-connection endpoint
-
ExploitServer issues SSRF request via httpGet
-
ExecutionTarget cloud metadata or internal service
-
PersistUpstream response leaked in error message
-
ImpactRead internal data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special configuration is required: the flaw is reachable against default deployments of gitea-mirror before 3.38.1, because the /api/gitea/test-connection and /api/github/test-connection endpoints lacked any authentication guard (CVSS PR:N, confirmed by CHANGELOG as 'the only non-public API routes without a guard'). The attacker simply supplies an arbitrary url in the request body. The practical limiting factor is network reachability - the attacker must be able to reach the instance's HTTP interface; the advisory's only stated workaround is to 'restrict network access to the instance until it is updated.' Readable content is limited to whatever the upstream response leaks through the appended error message, and the patch additionally blocks link-local/cloud-metadata addresses and redirect-following while still permitting private-network targets (since LAN Gitea mirroring is the intended use). |
| Impact | This is a credible, exploitable SSRF but a moderate-priority one, not a top-tier emergency. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, score 6.9) confirms the most important risk driver: the two test-connection endpoints required no authentication (PR:N) and could be hit remotely over the network with low complexity and no user interaction, as corroborated by the GHSA advisory and the CHANGELOG noting they 'were the only non-public API routes without a guard.' Impact is rated partial across both vulnerable and subsequent systems (VC:L/VI:L, SC:L/SI:L) rather than high, because the attacker gets limited read-back of internal responses leaked through upstream error messages (CWE-209 information disclosure chained onto CWE-918/CWE-306), not full code execution or complete data theft. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a real but non-critical issue. No CISA KEV listing is present in the input, so there is no confirmed active exploitation, and no EPSS score was provided, so statistical exploitation probability cannot be cited. The GHSA notes 'benign proofs of concept' were submitted privately by the reporters, but no public exploit code is referenced; this is pre-exploitation disclosure, meaning reachability (internet-exposed instances) is the key risk variable rather than observed in-the-wild attacks. |
| Exploit ScenarioDerived | An attacker who can reach a Gitea Mirror instance (before 3.38.1) sends an unauthenticated POST to /api/gitea/test-connection or /api/github/test-connection with a url pointing at a cloud metadata endpoint (e.g. 169.254.169.254) or an internal service. The server performs the HTTP request via httpGet, and because the upstream response body is appended to the returned error message, the attacker reads back portions of that internal response. Working public exploit code is not referenced, but the reporters submitted benign private PoCs, confirming the technique is practical. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Unauthenticated server-side request forgery in RayLabsHQ gitea-mirror 3.38.0 and earlier lets anyone who can reach the instance make the server issue HTTP requests to arbitrary URLs through the /api/gitea/test-connection and /api/github/test-connection endpoints, including internal hosts and cloud instance metadata services. Because the upstream response body was appended to error messages returned by httpGet, part of the targeted host's response could be read back by the caller. The vendor shipped 3.38.1 with authentication guards, link-local/metadata blocking, redirect refusal and error-message sanitisation; no public exploit code has been identified at time of analysis, though the reporters supplied benign proofs of concept privately and the priority rating is this_month rather than emergency.
RemediationAI
Upgrade to gitea-mirror 3.38.1, which is the vendor-released patch (release tag v3.38.1, commit c6157cdaad67321625d315b0f2f836b982cfe335) referenced from GHSA-9m33-xfrc-5jxw and https://www.vulncheck.com/advisories/gitea-mirror-before-3.38.1-unauthenticated-ssrf-via-connection-test-endpoints. Version 3.38.1 requires a signed-in user on both test-connection routes, refuses link-local and cloud metadata destinations after checking every address a hostname resolves to, stops following redirects for user-supplied URLs (connection tests, OIDC discovery, ntfy, Gotify, Apprise and webhook notifications), and no longer includes upstream response bodies in HTTP error messages; it also defaults AUTH_ALLOW_SIGNUP to false so email sign-up is rejected with a SIGNUP_CLOSED 403 once a user exists - trade-off: only the first account can be created unless AUTH_ALLOW_SIGNUP=true is explicitly set. If upgrading cannot be done immediately, the advisory's only stated workaround is to restrict network access to the instance until it is updated; the trade-off is that legitimate mirroring clients and any external users of the UI/API are cut off for the duration. Note that even after patching, private-network targets remain allowed by design, so an authenticated user can still probe LAN hosts reachable from the server.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
gitea-mirror is a TypeScript/Next.js application (API handlers live under src/pages/api, deployment via Docker Compose) that mirrors repositories between GitHub and Gitea and therefore legitimately makes outbound HTTP calls to user-supplied hosts. The root cause is CWE-918: two connection-test handlers accepted a url from the request body and passed it to a shared httpGet helper without validating the destination, and unlike every other non-public API route they carried no signed-in-user guard (CWE-306, missed by the earlier GHSA-w9g2-w4ww-8qgf fix). Severity is compounded by CWE-209 - the helper concatenated the upstream response body into its error message, so the caller received a partial echo of whatever the server reached, turning a blind SSRF into a limited-read SSRF. The 3.38.1 fix applies layered controls: authentication on both routes, refusal of link-local and cloud metadata addresses with every resolved address checked and redirects disabled (private ranges deliberately remain permitted because mirroring to a LAN Gitea is the normal deployment), and removal of upstream bodies from HTTP error messages. The same release also closes server-side email sign-up once an account exists unless AUTH_ALLOW_SIGNUP=true, since the open Better Auth /sign-up/email endpoint would otherwise have made the newly guarded routes reachable again.
Know when Gitea gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Unauthenticated remote request (PR:N/UI:N/AC:L), scope change as the server attacks other systems (S:C), with only partial read-back and limited request forgery, so C:L/I:L and A:N.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
RayLabsHQ gitea-mirror before 3.38.1 contains a server-side request forgery vulnerability that allows unauthenticated attackers to make the server send HTTP requests by supplying a url to /api/gitea/test-connection or /api/github/test-connection. Attackers can target internal network services and cloud instance metadata endpoints, reading response content leaked through upstream error messages returned by httpGet.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi
Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r
Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea
Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us
Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any
Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by
Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec
models/repo_mirror.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror repo URL settings, leading to rem
Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica
Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran
EUVD-2026-134174
GHSA-2phj-phgj-68px
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB