Skip to main content

Gitea CVE-2025-68945

MEDIUM
Exposure of Private Personal Information to an Unauthorized Actor (CWE-359)
2025-12-26 cve@mitre.org
5.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Reach public Gitea instance
  2. Exploit
    Request private user project URL
  3. Impact
    View private project contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection PII protection
Exploitation Conditions

Requires a network-reachable Gitea instance running a version before 1.21.2 that hosts at least one private (or limited-visibility) individual user account with a projects page. Per the CVSS vector (PR:N/UI:N), exploitation is unauthenticated and needs no user interaction - an anonymous HTTP GET to the private user's project route (e.g. /{user}/-/projects) suffices, because individual user permissions were not checked after org-assignment. Limiting factors: impact is confined to disclosure of private user project pages (C:L, no I/A impact); the instance must expose such private user projects and be reachable by the attacker; patched versions (1.21.2+) return HTTP 404 to anonymous and non-owner, non-admin users.

Impact

Signals are consistent and point to a genuine but modest-severity information-disclosure issue rather than a top-priority emergency. The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N = 5.3 Medium) describes a remotely reachable, trivially executed, unauthenticated flaw affecting only confidentiality at a LOW level, with no integrity or availability impact - matching CWE-359 (exposure of private information). EPSS is low at 0.36% (27th percentile), the CVE is NOT on CISA KEV, and no public exploit is indicated; these three low-probability signals reinforce one another and argue against widespread active exploitation. The only amplifying factor is that no authentication or user interaction is required, so exploitation is technically easy - but the payoff is limited to viewing private user project pages, not code execution or credential theft. Net: a real, patch-worthy bug for Gitea operators but a routine-priority item, not a drop-everything issue. No signals conflict; the main gap is that exploit/POC status is not reported in the input (treated here as none identified).

Exploit ScenarioDerived

An unauthenticated attacker browsing a publicly reachable Gitea instance (version before 1.21.2) directly requests the projects URL of a private individual user, e.g. GET /user31/-/projects, and the server returns the private project page instead of a 404. No exploit code is required beyond a normal HTTP GET; the leaked data is limited to the private user's project information. No public POC is identified in the provided data, though the fix PR includes an integration test demonstrating the pre-patch behavior.

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

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

Alert me

AnalysisAIv1 – Oct 13, 2026

Unauthenticated information disclosure in Gitea before 1.21.2 lets an anonymous remote visitor view the projects page of a private (or otherwise non-public) individual user account. Per the CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, exploitation requires no authentication and no user interaction: a single anonymous HTTP GET to a route such as /{user}/-/projects returns data that should be restricted, because individual user permissions were never checked after org assignment. Impact is limited to confidentiality (C:L) with no integrity or availability effect; EPSS is 0.36% (27th percentile) and no public exploit has been identified at time of analysis, and the issue is fixed in 1.21.2 (Vendor-released patch: 1.21.2), which returns HTTP 404 to anonymous and non-owner, non-admin requesters.

RemediationAI

Upgrade to Gitea 1.21.2 or later (Vendor-released patch: 1.21.2), which adds the individualPermsChecker middleware and returns HTTP 404 to anonymous or unauthorized requesters of private and limited individual users' project pages; see the release notes at https://blog.gitea.com/release-of-1.21.2/ and the fix at https://github.com/go-gitea/gitea/pull/28423. Because no patched version predates 1.21.2, upgrading is the only complete fix. If immediate upgrade is not possible, compensating controls include restricting network access to the Gitea instance (for example via firewall rules or a reverse proxy/allow-list) so that only trusted clients can reach the /-/projects and API user-project paths, at the cost of reducing public or remote availability; blocking or returning 404 for the pattern /{user}/-/projects at the reverse proxy (e.g., nginx location matching /-/projects) until the patch is applied, accepting the risk that a production route may be over-blocked; and auditing user Visibility settings so that no individual account relies on Private or Limited visibility for sensitive data during the exposure window. Note that merely setting users to public does not remediate the bug and changes the intended visibility posture; EPSS is low (0.36%) and no public exploit has been identified, so these measures are proportionate to a modest-severity confidentiality issue rather than an emergency.

Affected Packages

go code.gitea.io/gitea fix: 1.21.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Gitea is a self-hosted Git service written in Go. Its routing layer relies on middleware chains to authorize requests; organizational visibility is enforced in context.OrgAssignment, but the equivalent check for individual (non-organization) user accounts was missing. As a result, routes that render a user's projects - the web route /{user}/-/projects and the v1 API route under routers/api/v1/api.go - were reachable regardless of the target user's Visibility setting (Private or Limited), a gap falling under CWE-359 (Exposure of Private Personal Information to an Unauthorized Actor). The upstream fix in PR 28423 introduces an individualPermsChecker middleware applied to both the API and web routers: for an individual user with Private visibility it returns NotFound unless the requester is authenticated as that same user or is an administrator; for Limited visibility it returns NotFound to anonymous requesters. The accompanying integration test (tests/integration/project_test.go) verifies that an anonymous GET to /user31/-/projects yields HTTP 404 while the logged-in owner receives HTTP 200, confirming the intended authorization boundary.

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

NVD PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 5.3 MEDIUM

Anonymous HTTP request over the network (AV:N, AC:L, PR:N, UI:N) exposes only private project data with no write or availability effect, so C:L and I:N/A:N.

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

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

DescriptionNVD

In Gitea before 1.21.2, an anonymous user can visit a private user's project.

Threat Intelligence Overview

EPSS Score
0.4%
Top 73% exploitable
Prevalence
Medium
popular self-hosted git service, common but not ubiquitous
Data Quality
4 sources
Confidence: Medium

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.4%
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· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)NVD

cpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:*

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

Vendor StatusVendor

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