Skip to main content

Gitea EUVDEUVD-2026-101108

| CVE-2026-73804 HIGH
Incorrect Privilege Assignment (CWE-266)
N/A vendor:alpine
8.1
CVSS 3.1 · Vendor: vendor:alpine
View

Attack ChainAIDerived

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

  1. Access
    Obtain limited-scope API/personal access token
  2. Exploit
    Call API or git-HTTP endpoint outside token scope
  3. Impact
    Access or modify restricted repository data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Privilege assignment review
Exploitation Conditions

Requires an authenticated Gitea account and possession of a scoped credential - a personal access token, scoped OAuth2/API token, HTTP-signed, or basic-auth token request. The specific flaw is that when such a token was present, scope restrictions tied to 'ApiTokenScope' were not consistently enforced across package, release-draft, go-get, git-over-HTTP, and token/application endpoints, letting the token act beyond its granted scope. Limiting factors: the attacker must already be able to create or obtain a valid token (token creation is a default, self-service feature for authenticated users), so this is not a pre-authentication flaw; no user interaction and no non-default configuration are required beyond having token-based API access enabled.

Impact

This is a genuine but second-tier priority. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N = 8.1 High) is corroborated by the source diff: CWE-266 (Incorrect Privilege Assignment) manifests as scoped API/personal-access-token restrictions not being enforced, so a holder of a low-privilege scoped token (PR:L, authenticated) can reach resources beyond its granted scope over the network, yielding high confidentiality and integrity impact with no availability effect. The signals mostly agree on 'real but not urgent': EPSS is low (0.24%, 14th percentile), there is no CISA KEV listing and no public exploit identified, which contrasts with the High CVSS and tempers urgency - the high score reflects impact, not demonstrated exploitation. The requirement that an attacker first possess a valid (if under-scoped) token is the main brake on real-world risk; this is a privilege-boundary/scope-escalation bug rather than a pre-auth RCE. No SSVC decision data was supplied in the input, so automatable/exploitation-status cannot be derived from a vendor SSVC record. Note also a data tension: the EUVD affected-version range ('Gitea 0 ≤1.26.4') does not line up cleanly with the fix references, which point to upstream 1.27.2 (and Alpine 1.27.3-r0) as the fixed release - verify the exact last-vulnerable version against the GitHub advisory GHSA-q55v-4cmj-xh65.

Exploit ScenarioDerived

An authenticated Gitea user creates a personal access token intended to be limited to a narrow scope, then issues API or git-over-HTTP requests to endpoints the token's scope should forbid; because scope enforcement is skipped, the token is treated as broadly authorized and returns or modifies data outside its intended permissions. No public exploit is identified at time of analysis, but the fix diff clearly reveals the flawed authorization check, lowering the bar to reproduce.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – Oct 18, 2026

Incorrect privilege assignment in Gitea (all versions through 1.26.4) causes scoped API/OAuth2/basic-auth/HTTP-signature tokens to be trusted beyond the scope they were issued for, so any authenticated user who can mint a token can read and modify resources the token was never meant to reach, including private-release drafts, package-registry endpoints, go-get and git-over-HTTP repository access. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/C:H/I:H/A:N, 8.1) confirms the attacker must already hold a valid account and credential, and the flaw is a silent authorization bypass rather than a pre-authentication compromise. Upstream patched the token-scope plumbing in Gitea 1.27.2 (Alpine ships the fix as gitea 1.27.3-r0); EPSS is only 0.24% (14th percentile) and no public exploit code or CISA KEV entry was identified at time of analysis.

Earlier versions of this analysis (1)
v1 Sep 06, 2026 - 06:39

Gitea, a self-hosted Git service, received a security fix in its Alpine Linux package build at version 1.27.3-r0. The nature and severity of the underlying vulnerability are not described in available data - only the patched Alpine package version is disclosed. No CVSS score, CWE classification, or technical description has been published, making independent risk assessment difficult without consulting the upstream Gitea release notes or changelog.

RemediationAI

Upgrade Gitea to 1.27.2 or later; on Alpine Linux run 'apk upgrade gitea' to reach gitea 1.27.3-r0, which packages the fixed source, and verify the running version afterwards. Full details and the patched commits are in advisory https://github.com/go-gitea/gitea/security/advisories/GHSA-q55v-4cmj-xh65 and release https://github.com/go-gitea/gitea/releases/tag/v1.27.2. If an immediate upgrade is not possible, the highest-value compensating control is to invalidate every existing personal access token, OAuth2 token, and HTTP-signature credential and reissue only those with minimal privilege, since the bypass depends on a token being present and already-leaked scope-limited tokens are the primary exposure; the trade-off is operational churn for API integrations. Administrators can also disable HTTP-signature and basic-auth token authentication where unused, and restrict self-service token creation in the user settings if that is exposed to untrusted accounts, but both reduce automation capability and will break CI/CD flows that rely on those auth methods. Because the defect affects draft-release and package-registry visibility, review access logs for scope-mismatched reads of private repositories, packages, and unpublished releases, and treat any such reads as disclosure. Rotate any token that was used from an unexpected source while the instance was unpatched.

Affected VersionsENISA

Gitea 0 ≤1.26.4

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

Gitea is a Go-based self-hosted Git service. Its authentication layer (services/auth/basic.go, httpsign.go, oauth2.go, routers/api/packages/auth.go) populated a boolean context flag 'IsApiToken' when a request was authenticated with a personal access token, OAuth2 token, HTTP-signature token, or basic-auth token, and separately stored the granted scope under 'ApiTokenScope' as an auth_model.AccessTokenScope. Authorization checks across routers (routers/api/packages/api.go, routers/api/v1/api.go tokenRequiresScopes, routers/api/v1/repo/release.go draft-release access, routers/api/v1/user/app.go and web/user/setting/applications.go token creation, routers/web/goget.go, routers/web/repo/githttp.go) branched on IsApiToken and then performed a forced or unchecked type assertion on ApiTokenScope. Because several backends set IsApiToken=true without ever setting ApiTokenScope, and the fix commit replaces the flag with a presence test on the scope value itself (scope, hasApiTokenScope := ctx.Data["ApiTokenScope"].(auth_model.AccessTokenScope)), the defect maps to CWE-266 Incorrect Privilege Assignment: the code treated 'authenticated via token' as equivalent to 'authorized for the scope requested', silently skipping scope enforcement when the scope context was missing or mistyped. The result is that a narrowly scoped credential inherits the full permissions of the owning account on the affected endpoints.

Know when Alpine Linux 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 (vendor:alpine) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 8.1 HIGH

Exploited over the network by a holder of a valid but low-scope token (PR:L, no UI), enabling access and modification beyond scope (C:H/I:H), with no availability impact and no scope change.

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

Primary rating from Vendor (vendor:alpine).

CVSS VectorVendor: vendor:alpine

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

Lifecycle Timeline

2
Analysis Updated
Oct 18, 2026 - 14:28 vuln.today
v2 - CVSS changed
CVSS changed
Oct 18, 2026 - 14:22 NVD
8.1 (HIGH)

DescriptionCVE.org

Alpine Linux: gitea fixed in 1.27.3-r0

Executive ViewAI

Why It Matters

Organizations running Gitea through 1.26.4 face a high-severity authorization bypass in which scoped API/OAuth2/basic-auth/HTTP-signature tokens can reach private-release drafts, package-registry content, and repository data beyond their issued scope. The flaw requires an authenticated user who can mint a token, so practical risk is elevated in developer environments where many accounts and long-lived tokens exist; a low-privilege or compromised account could silently expose or alter sensitive code and release artifacts. No public exploit identified at time of analysis, but leadership should treat this as a material integrity and confidentiality issue for engineering assets.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Medium
popular self-hosted git service, common but not ubiquitous enterprise-wide
Data Quality
5 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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
No
Human Impact
High

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
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.

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