Skip to main content

Gitea CVE-2025-68943

MEDIUM
Exposure of Sensitive System Information to an Unauthorized Control Sphere (CWE-497)
2025-12-26 cve@mitre.org
5.3
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Reach public Gitea explore page
  2. Exploit
    Request users list with sort=lastlogin
  3. Execution
    Observe login-time ordering in response
  4. Impact
    Harvest user activity metadata for targeting

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection System info exposure prevention
Exploitation Conditions

Exploitation requires that the Gitea instance expose the /explore/users (or /explore/organizations) listing to the requester - on public or internally-reachable instances this is accessible to unauthenticated visitors by default. The specific trigger is supplying the sort query parameter with value lastlogin or reverselastlogin (and related leaking orders such as leastupdate/reverseleastupdate) to the explore endpoint on any Gitea version before 1.21.8. Limiting factors: if the explore pages are disabled or restricted to authenticated users, or the instance requires login to browse, the unauthenticated path is cut off; impact is also limited to disclosing user last-login timestamps rather than any credential or content access.

Impact

This is a genuine but low-severity information-disclosure issue, correctly rated CVSS 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) - network-reachable, low complexity, no privileges or user interaction, with only limited confidentiality impact (C:L) and no integrity or availability impact. The signals are consistent rather than conflicting: EPSS is low at 0.36% (27th percentile), there is no CISA KEV listing, and no public exploit code was identified, all of which align with a minor privacy leak rather than a high-priority intrusion vector. The CVSS network/unauthenticated vector is corroborated by the source code: an anonymous HTTP GET to /explore/users?sort=lastlogin exposes login timestamps, so the AV:N/PR:N rating is well-founded. The 'exploit' yields only metadata (when users last logged in), not account compromise, code execution, or credential theft - so despite the trivially-easy exploitation, real-world risk is low and this should be patched on a routine schedule rather than as an emergency. The main value of the disclosed data is reconnaissance (identifying active vs. dormant accounts for targeted follow-on attacks).

Exploit ScenarioDerived

An unauthenticated attacker visits a public Gitea instance and requests the explore/users listing with the sort parameter set to lastlogin (e.g. /explore/users?sort=lastlogin), causing the server to order and thereby reveal users' last-login times. The attacker harvests this activity metadata to profile which accounts are active or dormant for targeted phishing or password-guessing. No public exploit code is required - the attack is a single crafted query string against the standard web UI.

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

Gitea instances running versions before 1.21.8 expose users' last-login timestamps to anyone who can reach the public explore listings, because the /explore/users endpoint accepted sort values such as lastlogin and reverselastlogin (and activity-leaking variants like leastupdate and reverseleastupdate) that were never intended to be user-selectable. The issue is network-reachable, requires no authentication and no user interaction (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, CVSS 5.3, CWE-497), and the only impact is limited confidentiality loss - no credentials, repository content, or state modification is exposed. No public exploit code has been identified at time of analysis and the CVE is not in CISA KEV; EPSS is low at 0.36% (27th percentile), consistent with a low-value reconnaissance/enumeration bug rather than an active campaign. Exploitation simply requires issuing a crafted sort query parameter against an instance whose explore pages are publicly accessible or reachable from an internal network.

RemediationAI

Upgrade to Gitea 1.21.8 or later - vendor-released patch: 1.21.8 (with 1.21.9 and 1.21.10 also containing the fix) - as described in the release announcement at https://blog.gitea.com/release-of-1.21.8-and-1.21.9-and-1.21.10/ and the fixing pull request https://github.com/go-gitea/gitea/pull/29430. The patch works by restricting explore sorting to an allow-list (newest, oldest, alphabetically, reversealphabetically) and returning HTTP 404 for any other sort value, so no configuration change is needed once applied. If upgrading immediately is not possible, the practical compensating controls are to require authentication for browsing the instance (for example by disabling anonymous/public access so that the explore pages and their sort parameters are unreachable without a login; trade-off: fully public-facing repositories and profiles become inaccessible to visitors) or to front the instance with a reverse proxy or WAF rule that rejects or strips requests to /explore/users and /explore/organizations carrying sort=lastlogin, sort=reverselastlogin, sort=leastupdate or sort=reverseleastupdate (trade-off: introduces a custom filter that must be maintained and can be bypassed by alternate paths or encodings, providing only partial mitigation). Because the exposed data is limited to last-login timestamps and the vector is unauthenticated but read-only, these controls should be treated as temporary while the upgrade is scheduled.

Affected Packages

go code.gitea.io/gitea fix: 1.21.8

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

The flaw is a missing allow-list on the sort parameter of Gitea's explore views and the underlying user search model. The search layer defined SearchUserOptions with no restriction on which sort orders callers could request, so arbitrary orderings recognized internally by the ORM - including lastlogin, reverselastlogin, leastupdate and reverseleastupdate - were reachable directly through the query string. The upstream fix (PR 29430, shipped in v1.21.8) adds a SupportedSortOrders container.Set field to SearchUserOptions, populates it in routers/web/explore/user.go and routers/web/explore/org.go with only newest, oldest, alphabetically and reversealphabetically, and rejects anything else with HTTP 404 in RenderUserSearch; the corresponding dropdown entries were also removed from templates/explore/search.tmpl and an integration test (tests/integration/explore_user_test.go) was added asserting that lastlogin, reverselastlogin, leastupdate and reverseleastupdate now return 404. The affected component is the Go-based code.gitea.io/gitea web/explore surface, tracked generically by CPE cpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:* for all releases before 1.21.8. CWE-497 (Exposure of Sensitive System Information to an Unauthorized Control Sphere) captures the root cause precisely: an internal, non-security-critical data ordering was unintentionally exposed as a publicly selectable sort mode, turning a benign ordering feature into a user-activity disclosure oracle.

Severity by source

Vendor (mitre) 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

A single unauthenticated HTTP request to the explore endpoint leaks login-time metadata, so AV:N/AC:L/PR:N/UI:N with only low confidentiality impact and no integrity or availability effect.

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 Vendor (mitre).

CVSS VectorVendor: mitre

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

DescriptionCVE.org

Gitea before 1.21.8 inadvertently discloses users' login times by allowing (for example) the lastlogintime explore/users sort order.

Threat Intelligence Overview

EPSS Score
0.4%
Top 73% exploitable
Prevalence
Medium
popular self-hosted git service, common but not in every environment
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)CVE.org

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