Skip to main content

Gitea EUVDEUVD-2026-103993

| CVE-2026-97859 MEDIUM
Missing Authorization (CWE-862)
2026-10-18 Gitea
6.5
CVSS 3.1 · Vendor: Gitea
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with valid API token
  2. Exploit
    Request /api/v1/users/{target}/followers or /keys
  3. Execution
    Visibility middleware absent, check bypassed
  4. Impact
    Harvest private user's metadata and keys

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated Gitea account with a valid API token (read-user scope is sufficient) - it is not remote-unauthenticated. The target must be an individual user configured with 'limited' or 'private' visibility; public users expose this data anyway, so there is no additional disclosure for them. The flaw works against default configurations of affected versions (Gitea ≤1.27.2) with no special setting needed. Limiting factors: authentication is mandatory, scope is unchanged (single target user per request), and the disclosed data is low-sensitivity relationship metadata plus SSH/GPG keys that are inherently public - no credentials, source code, or private repository contents are exposed.

Impact

This is a moderate, lower-priority information-disclosure issue rather than an urgent threat. The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N = 6.5) correctly reflects a network-reachable, low-complexity flaw requiring an authenticated account (PR:L) with no integrity or availability impact. All exploitation signals point low: EPSS is 0.16% (5th percentile), there is no CISA KEV listing, and no public exploit code was identified - only vendor PR diffs and advisories, which demonstrate the fix, not a weaponized exploit. The main point of tension is the confidentiality rating: the vendor-provided vector uses C:H, but the data actually exposed is low-sensitivity relationship metadata (followers, following, starred/watched repos) plus SSH and GPG keys that the description itself calls 'public' - so C:H arguably overstates impact, and a C:L assessment is more defensible (see assessed vector). Net: a genuine access-control gap worth patching on a normal cadence, but not a drop-everything priority given authentication is required, impact is metadata disclosure, and there is no evidence of exploitation.

Exploit ScenarioDerived

An authenticated Gitea user (any account with a read-user API token) queries another user's API endpoints such as /api/v1/users/{username}/followers or /keys. Because the visibility middleware is missing, the server returns the follower/following lists, starred and watched repositories, and public SSH/GPG keys of a target whose profile is set to limited or private - information the requester should not be able to see. No public exploit code exists, but exploitation is trivial given the AV:N/AC:L vector and requires only a standard logged-in session.

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

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

Alert me

AnalysisAIv1 – Oct 19, 2026

Missing per-user authorization middleware on seven Gitea API routes lets any authenticated account holding an API token with read-user scope enumerate the followers, following list, starred and watched repositories, and public SSH/GPG keys of individual users whose profile is set to 'limited' or 'private' visibility, which should otherwise be hidden from them. It affects Gitea up to and including 1.27.2 and is fixed in 1.27.3 and 28.0.0, with the disclosure shipped alongside the 28.2.0 release; exploitation requires a valid account and token (PR:L) and only works against non-public users, so the practical impact is moderate information disclosure rather than a critical exposure. There is no CISA KEV listing and no public exploit identified at time of analysis, and EPSS is 0.16% (5th percentile), consistent with a low-urgency bug that is nonetheless trivially scriptable once an account is obtained.

RemediationAI

Vendor-released patch: upgrade to Gitea 1.27.3 or 28.0.0 (or later, such as the 28.2.0 release that carries the public disclosure). Fix commits are visible in https://github.com/go-gitea/gitea/pull/39004 and the backport https://github.com/go-gitea/gitea/pull/39039, and the advisory at https://github.com/go-gitea/gitea/security/advisories/GHSA-xvfh-qwmh-f92w should be used to track the fixed builds. Where an immediate upgrade is not possible, reduce exposure by auditing and narrowing API tokens: the exploit needs only read-user scope, so revoke or downgrade tokens held by low-trust accounts and prefer per-integration tokens over broad user tokens - the trade-off is that legitimate clients relying on read:user for profile, key or follower data will break. As a stopgap, a reverse proxy or WAF rule can deny unauthenticated-to-low-trust access to the /api/v1/users/{username}/followers, /following, /following/{target}, /starred, /subscriptions, /keys and /gpg_keys paths; this blocks the enumeration vector but also disables those features for all API consumers, so it should be scoped by token or network and removed once patched. Because the leaked data is relationship metadata and public key material, prioritise the upgrade for instances that host private or limited-visibility accounts (whistleblower, moderation or pseudonymous users) and treat credential rotation of SSH/GPG keys as an optional hardening step rather than a required response.

Affected VersionsENISA

Gitea 0 ≤1.27.2

Affected Packages

euvd gitea no fix

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

The root cause is CWE-862 (Missing Authorization): the router in routers/api/v1/api.go registered the followers, following, following/{target}, starred, subscriptions, keys and gpg_keys handlers under /api/v1/users/{username} without the individualPermsChecker middleware that gates sibling endpoints, so requests bypassed the check that reconciles the target user's visibility setting against the requesting user. Gitea models individual account visibility as public, limited or private, and the pre-fix per-route logic in verifyAuthWithOptions only rejected anonymous callers for 'limited' users and non-owner non-admin callers for 'private' users - logic that was never reached on the unguarded routes; the patch replaces that ad-hoc switch with a single call to user_model.IsUserVisibleToViewer(ctx, ctx.ContextUser, ctx.Doer) and attaches individualPermsChecker to the affected route groups. The same pull request tightened adjacent repository/issue search conditions in models/repo/repo_list.go and models/issues/issue_search.go, replacing the org-vs-user visibility branch in userAllPublicRepoCond with an owner-visibility filter and introducing PublicRepoUnderPublicOwnerCond so that repository and issue search results no longer leak activity from owners the caller cannot see. A new integration test (tests/integration/api_user_visibility_test.go) pins the behaviour by asserting 404 for a restricted token against a 'limited' owner while a permitted viewer still receives 200. The disclosed data is relationship and activity metadata plus SSH/GPG keys, which are public key material by design; no session tokens, credentials, private repository contents or source code are reachable through these routes.

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 (Gitea) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 4.3 MEDIUM

Network-reachable and low-complexity but requires an authenticated account (PR:L); impact is limited-sensitivity metadata and already-public keys, so C:L rather than C:H, with no integrity or availability effect.

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

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

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

Lifecycle Timeline

2
CVSS changed
Oct 19, 2026 - 19:22 NVD
6.5 (MEDIUM)
CVE Published
Oct 18, 2026 - 19:01 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Seven Gitea API routes under /api/v1/users/{username} (followers, following, following/{target}, starred, subscriptions, keys and gpg_keys) were registered without the individualPermsChecker middleware that enforces the visibility of the target user. An authenticated user could therefore read the followers, following list, starred and watched repositories and public SSH and GPG keys of a user with limited or private visibility, whom they could not otherwise see. The issue was fixed in 1.27.3 and 28.0.0 and disclosed with 28.2.0.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
popular self-hosted git service, common in dev teams but not ubiquitous
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL 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.2%
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

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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