Skip to main content

gitea-mirror EUVDEUVD-2026-134174

| CVE-2026-136177 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-11-24 disclosure@vulncheck.com GHSA-2phj-phgj-68px
6.9
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed Gitea Mirror instance
  2. Delivery
    POST crafted url to test-connection endpoint
  3. Exploit
    Server issues SSRF request via httpGet
  4. Execution
    Target cloud metadata or internal service
  5. Persist
    Upstream response leaked in error message
  6. Impact
    Read 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

gitea-mirror 0 <3.38.1

Affected Packages

euvd gitea_mirror fix: 3.38.1

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

Vendor (vulncheck) PRIMARY 6.9 MEDIUM
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
vuln.today AI 7.2 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 24, 2026 - 18:03 EUVD
CVE Published
Nov 24, 2026 - 17:18 cve.org
MEDIUM 6.9

DescriptionCVE.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

EPSS Score
0.6%
Top 59% exploitable
Prevalence
Low
niche self-hosted tool for mirroring repos to a private Gitea
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

More in Gitea

View all
CVE-2026-60004 CRITICAL POC
9.8

Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi

CVE-2026-27771 HIGH POC
8.2 Jul 03

Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r

CVE-2022-30781 HIGH POC
7.5 May 16

Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp

CVE-2020-14144 HIGH POC
7.2 Oct 16

The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir

CVE-2024-6886 CRITICAL POC
10.0 Aug 06

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea

CVE-2026-72867 CRITICAL POC
9.9 Aug 10

Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us

CVE-2026-20896 CRITICAL POC
9.8 Jul 03

Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any

CVE-2026-59774 CRITICAL POC
9.8

Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by

CVE-2026-58053 CRITICAL POC
9.4 Jun 28

Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec

CVE-2019-11229 HIGH POC
8.8 Apr 15

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

CVE-2026-57894 HIGH POC
8.5 Jul 21

Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica

CVE-2026-24791 HIGH POC
8.1 Jun 17

Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy